new supreme directory pages

This topic contains 34 replies, has 4 voices, and was last updated by  valdice14 6 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #397151

    valdice14
    Free User
    Post count: 36

    Hello there!
    When i create new pages without gd_template i got featured image below the header, i need to keep the gd_template like gd_home or gd_listing.
    Here link of correct header: http://findercoach.com/
    Here link of wrong header: http://findercoach.com/contattaci/
    I try some css mods without any success.
    Any help will be appreciated, thx in advance.
    Valdo

    #397155

    Guust
    Moderator
    Post count: 29970

    Hi Valdo, I’ll get someone to have a closer look after the weekend.
    I have trouble too finding the correct CSS.

    Thanks

    #397156

    valdice14
    Free User
    Post count: 36

    hi Guust, thank you so much, i love all your work guys, i have a question about licenses i’ve bought, what’s the correct section to ask?

    #397158

    Guust
    Moderator
    Post count: 29970

    Just ask here. Thanks

    #397231

    Giri
    Expired Member
    Post count: 3155

    Hi there,

    Try this snippet in https://wordpress.org/plugins/code-snippets/

    
    
    
    function sd_custom_header_body_class($classes)
    {
    	if (!in_array("sd-homepage", $classes)) {
    		$classes[] = 'sd-homepage';	
    	}
    	return $classes;
    }
    add_filter('body_class', 'sd_custom_header_body_class');

    If your layout get messed up, please disable that snippet.

    Thanks

    #397279

    valdice14
    Free User
    Post count: 36

    Works great giri!
    Thanks a lot!

    #397311

    valdice14
    Free User
    Post count: 36

    Edit: Giri this work but concatenate a lot of other problems.

    – In pages like these http://findercoach.com/author/valdo/?geodir_dashbord=true&stype=gd_place or http://findercoach.com/places/ or add-listing and listing-succes we don’t have featured div so all disappear and i lost the same div where i have the messages for users when they add or review a list.

    so there are a method, like editing css where i can define your function in specific pages?

    thanks in advance

    #397403

    Giri
    Expired Member
    Post count: 3155

    List the type of pages, I’ll customize the code and give you.

    Thanks

    #397404

    valdice14
    Free User
    Post count: 36

    Hi giri, thx for reply what do you mean for “type”?
    I’ve only 2 templates as shown in attached image.
    I need the homepage template in my news and contattaci pages.

    #397407

    Giri
    Expired Member
    Post count: 3155

    By “Type” I was talking about the post types, Like Posts, Pages, gd_place etc.

    How about this?

    What are the pages you want to exclude that class?

    Ex: Add Listing, ….

    #397411

    valdice14
    Free User
    Post count: 36

    i need ur function only on new pages i create, like base template page or page that show posts.
    Btw for sure i want to exclude all gd-pages that comes without featured area like /places/ | ?geodir_dashbord=true&stype=gd_place | #reviews | /add-listing/
    I hope this is comprensive to u.. -_-
    Thanks

    #397413

    Giri
    Expired Member
    Post count: 3155

    Ok in GD terminalogy,

    we have pages like Listing pages, Detail pages, Add listing pages

    Detail page is the single listing page.

    As far as I know you have featured images only on single pages.

    How about we target only the detail pages?

    #397415

    valdice14
    Free User
    Post count: 36

    mmm is possible to use ur code without afflicting listing page and add listing page?

    #397420

    Giri
    Expired Member
    Post count: 3155

    Ok replace my old code with this one.

    
    
    
    function sd_custom_header_body_class($classes)
    {
    	if (
    		geodir_is_page('add-listing') 
    		|| geodir_is_page('listing')
    		|| geodir_is_page('search')
    		|| geodir_is_page('author')
    		|| geodir_is_page('location')
    		|| geodir_is_page('preview')
    		|| geodir_is_page('listing-success')
    		|| geodir_is_page('info')
    		|| geodir_is_page('login')
    		|| geodir_is_page('checkout')
    		|| geodir_is_page('invoices')
    	) {
    		return $classes;
    	}
    	
    	if (!in_array("sd-homepage", $classes)) {
    		$classes[] = 'sd-homepage';
    	}
    	return $classes;
    }
    add_filter('body_class', 'sd_custom_header_body_class');

    The above code excludes certain GD pages. Hope that helps.

    Thanks

    #397423

    valdice14
    Free User
    Post count: 36

    Thats awesome giri!! in this way i’m able to exclude some tipe of page in future!
    Works supergreat!!
    thank you a lot

Viewing 15 posts - 1 through 15 (of 35 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket