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-
AuthorPosts
-
September 24, 2017 at 11:56 am #397151
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.
ValdoSeptember 24, 2017 at 12:24 pm #397155Hi Valdo, I’ll get someone to have a closer look after the weekend.
I have trouble too finding the correct CSS.Thanks
September 24, 2017 at 12:30 pm #397156hi 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?
September 24, 2017 at 2:26 pm #397158Just ask here. Thanks
September 25, 2017 at 12:12 pm #397231Hi 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
September 25, 2017 at 7:31 pm #397279Works great giri!
Thanks a lot!September 26, 2017 at 1:24 am #397311Edit: 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
September 26, 2017 at 12:41 pm #397403List the type of pages, I’ll customize the code and give you.
Thanks
September 26, 2017 at 12:45 pm #397404Hi 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.September 26, 2017 at 12:48 pm #397407By “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, ….
September 26, 2017 at 12:55 pm #397411i 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.. -_-
ThanksSeptember 26, 2017 at 1:05 pm #397413Ok 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?
September 26, 2017 at 1:07 pm #397415mmm is possible to use ur code without afflicting listing page and add listing page?
September 26, 2017 at 1:23 pm #397420Ok 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
September 26, 2017 at 1:28 pm #397423Thats awesome giri!! in this way i’m able to exclude some tipe of page in future!
Works supergreat!!
thank you a lot -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket