Change order of details page

This topic contains 16 replies, has 4 voices, and was last updated by  Alex Rollin 6 years, 5 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #402493

    Marcus Conway
    Expired Member
    Post count: 126

    Hi there!

    I wondered if it possible to change the order of the details page. I am finding users are posting comments (as a review) in Facebook as it appears before the review section.

    http://www.naturephototour.com/places/wildlife-photography-business/mull-charters/

    Of course I could turn off facebook comments but I also like this feature.

    So is there a simple way to change the order of content on the details page?

    Thanks

    #402495

    Guust
    Moderator
    Post count: 29970
    #402496

    Marcus Conway
    Expired Member
    Post count: 126

    Thanks for the support. Its way too complicated for a none techie like me. Thanks all the same.

    #402497

    Guust
    Moderator
    Post count: 29970

    It is not really that complicated and when you use the code snippets plugin, you cannot make a mistake really.
    https://wpgeodirectory.com/docs/useful-plugins/#snippets

    Thanks

    #402504

    Marcus Conway
    Expired Member
    Post count: 126

    OK I will have a try !

    #402521

    Marcus Conway
    Expired Member
    Post count: 126

    Ok – so it was easy 🙂 AWESOME!
    Thanks!

    I have put reviews at the top. Comments is nested under overview – how do I move this to the foot of the post?

    http://www.naturephototour.com/articles/bird-photography/photograph-ptarmigan-cairngorms/

    #402585

    Guust
    Moderator
    Post count: 29970

    I am not sure. GD normally replaces Comments with Reviews, so Comments should not be there. It is because you added an extra plugin.
    Post your WP admin details in a private reply, and if it is something simple, we’ll see what we can do regarding that non-GD plugin.

    Thanks

    #402586

    Marcus Conway
    Expired Member
    Post count: 126
    This reply has been marked as private.
    #402660

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I would guess the plugin is filtering the content so it is just adding it to the content section, if they have a shortcode to output it? you might be able to put it in its own tab.

    Stiofan

    #402661

    Marcus Conway
    Expired Member
    Post count: 126

    Ok I have some short code

    <?php echo do_shortcode('[fbcomments url="http://peadig.com/wordpress-plugins/facebook-comments/" width="375" count="off" num="3" countmsg="wonderful comments!"]'); ?>

    How do I insert this into the template using code snippets to make it appear as the last content on the details page?

    #402670

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Marcus,

    Adding a new tab is explained here: https://wpgeodirectory.com/add-a-new-tab-in-the-listing-detail-page/

    Thanks,

    Stiofan

    #402883

    Marcus Conway
    Expired Member
    Post count: 126

    I get the following issue

    Don’t Panic

    The code snippet you are trying to save produced a fatal error on line 8:

    Cannot redeclare geodir_detail_page_tab_list_extend() (previously declared in /home2/naturep4/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(433) : eval()’d code:5)
    The previous version of the snippet is unchanged, and the rest of this site should be functioning normally as before.

    Please use the back button in your browser to return to the previous page and try to fix the code error. If you prefer, you can close this page and discard the changes you just made. No changes will be made to this site.

    #402884

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Looks like you already have the function declared to change the order maybe in another snippet, so u should make the changes there.

    Stiofan

    #402885

    Marcus Conway
    Expired Member
    Post count: 126

    Put the same code to create a new snippet in the code to reorder the snippet?

    #402950

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    Have you already done this part? This is the place to start with all your tabs.

    https://wpgeodirectory.com/re-order-tabs-in-a-listing-detail-page/

    Start with that part and let us know how it goes.

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

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

Open Support Ticket