Tabs in single view
This topic contains 8 replies, has 3 voices, and was last updated by Paolo 10 years, 8 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
April 5, 2015 at 3:23 pm #36248
Hi i`m testing GD.
I like to design the single view of the listings. I dont like the tabs, is it possible to change that? i like to have the description and above the comments.April 6, 2015 at 1:20 am #36282Yes, it is possible and has been discussed in the forum before, but cannot quite find it for the moment. I’ll ask the others, you might just have to be a bit patient because of the Easter break.
April 7, 2015 at 4:28 pm #36430Hi,
1st you need to remove the tabs completely:
remove_action( 'geodir_details_main_content', 'geodir_show_detail_page_tabs',60);and add back what you need instead, creating a new function taking the corresponding parts from the function we just removed (geodir_show_detail_page_tabs).
In this case:
function my_cutom_detail_page () { do_action('geodir_before_description_on_listing_detail'); if (geodir_is_page('detail')) { the_content(); } else { /** This action is documented in geodirectory_template_actions.php */ echo apply_filters('the_content', stripslashes($post->post_desc)); } echo comments_template(); } add_action( 'geodir_details_main_content', 'my_cutom_detail_page',60);Let us know how you went,
Thanks
April 7, 2015 at 4:30 pm #36431just FYI, that code would go into your active theme’s function.php file.
Thanks
April 8, 2015 at 2:14 pm #36547Ok. Thats great, thank you.
and its possible now to put the description into a div, to style it better?April 8, 2015 at 8:22 pm #36581Hi,
with this you can wrap the_content in an extra div.
remove_action( 'geodir_details_main_content', 'geodir_show_detail_page_tabs',60); function my_cutom_detail_page () { do_action('geodir_before_description_on_listing_detail'); if (geodir_is_page('detail')) { ob_start(); the_content(); $content = ob_get_clean(); echo '<div class="myclass">'.$content.'</div>'; } else { /** This action is documented in geodirectory_template_actions.php */ echo apply_filters('the_content', stripslashes($post->post_desc)); } echo comments_template(); } add_action( 'geodir_details_main_content', 'my_cutom_detail_page',60);Just FYI, what you are asking is beyond support. We can point you in the right direction customizing your website, but we can’t do it for you.
If editing php isn’t something you can do on your own, even simple edits like the above, you will need to hire a developer to do any other change on your website.
Thanks
April 8, 2015 at 11:13 pm #36599Ok, sorry for that.
you helped me a lot, thank you!April 9, 2015 at 2:37 pm #36651Just one thing more: I have already The Description, Map, Gallery and the Comments without tabs, but i can´t find the way to do the same with the more info Tab…
April 9, 2015 at 6:35 pm #36695Please see: https://wpgeodirectory.com/support/topic/custom-fields-3/#post-31897
Thanks
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket