Skip to content

Instantly share code, notes, and snippets.

@hivepress
Created April 26, 2022 16:13
Show Gist options
  • Select an option

  • Save hivepress/4ed3d319ab220c6e005f58a4da95e504 to your computer and use it in GitHub Desktop.

Select an option

Save hivepress/4ed3d319ab220c6e005f58a4da95e504 to your computer and use it in GitHub Desktop.
Enable rich text (HTML) editor for the listing description #hivepress #listings
<?php
add_filter(
'hivepress/v1/models/listing',
function( $model ) {
$model['fields']['description']['editor'] = true;
return $model;
},
1000
);
@Kienma-prince
Copy link

Hello, can you write a custom code to make the mobile display same as the desktop display? No more responsive display.

@hivepress
Copy link
Author

Hello, can you write a custom code to make the mobile display same as the desktop display? No more responsive display.

This is a common issue not specific to HivePress, but adding the HTML meta tag mentioned here https://stackoverflow.com/questions/19165545/disable-css-for-responsive-design to the theme's header.php file should do the job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment