Join our new community forum for support & discussion

Join Now

Home Support Themes ListingHive Love this plugin .. but I have another question.

Love this plugin .. but I have another question.

  • Author
    Posts
  • mickeymouse

    I haven’t updated my site for 10+ years never liked anything online this I found this..
    Love it!!

    I have another question or two …

    1 . When I add a new page or create a new page by default it adds the default featured image and the page title at the very top. Is there a way we can remove this ?? For example, the listing page doesn’t have this.

    2. Radius ? when we do a search what is the default radius of the search? and how can I increase it to 50 KM?

    ihor developer

    Thanks, glad you like it!

    It’s possible to resolve both issues with a simple code snippet, I’ll post it on Monday (currently I’m on vacation and I don’t have access to my laptop).

    mickeymouse

    Thank You

    ihor developer

    1. Please try using this CSS snippet for hiding the page title:

    .page .header-hero {display:none;}

    2. You can add this code snippet to a child theme’s functions.php file to customize the location search radius:

    add_filter(
    	'hivepress/v1/models/listing/attributes',
    	function( $attributes ) {
    		if ( isset( $attributes['latitude'] ) ) {
    			$attributes['latitude']['search_field']['radius']  = 50;
    			$attributes['longitude']['search_field']['radius'] = 50;
    		}
    
    		return $attributes;
    	},
    	1000
    );
    mickeymouse

    Hi so greatful but when I try the child theme I get this error

    Something went wrong. Your change may not have been saved. Please try again. There is also a chance that you may need to manually fix and upload the file over FTP.

    mickeymouse

    tried other snippets you posted and worked except for this one.
    also .. when i add a child theme it overrides my current settings and changes the logo and some other colors and settings I made .. how do I make it work and look exactly like my current version .. except for the new changes I make.

    mickeymouse

    Nevermind about child theme I just manually made the corrections to replicate the original theme.
    BUT I still have the issue with the snippet you provided for radius. It doesnt work when I enter it ,, it provides that error message mentioned above.

    ihor developer

    I tried adding it on a local installation and it seems to work, please make sure that you added it to the end of functions.php file without any changes.

    mickeymouse

    ahhh I figured it out.
    again for those that try this .. it wont work (well not for me) when using the theme editor inside Appearance.
    What I did was locate the functions.php with FTP, then download it to my pc .. make the corrections and reupload. Works perfect .. nice radius now.
    Thank You ihor.

    mickeymouse

    how do we make the header not appear for selected pages ??
    .page .header-hero {display:none;} that does all pages.

    ihor developer

    If it’s a static page you can use page ID in the CSS code snippet:

    .page-id-123 .header-hero {display:none;}

Viewing 11 posts - 1 through 11 (of 11 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.