average rating above title

This topic contains 5 replies, has 3 voices, and was last updated by  Kiran 5 years, 2 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #474295

    Marcel Warenburg
    Expired Member
    Post count: 24

    Hello,

    For correct view on mobile devices I would like to move the average rating block to a position above the title instead of in the sidebar. Possibly this can be done with hooks but I could not find any usefull documentation on how to handle that.

    Could you give an example of how to handle that?

    #474314

    Kor
    Moderator
    Post count: 16516

    Hi Marcel,

    Thanks for your post. Have you tested GDv2 https://wpgeodirectory.com/try-geodirectory-v2/ ? In GDv2, you can edit the details listing page https://wpgeodirectory.com/docs-v2/geodirectory/page-design/ and display the listing ratings using shortcode https://wpgeodirectory.com/docs-v2/geodirectory/design-elements/#gd_post_rating . Then, you can possibly try using a page builder to hide/show certain shortcodes on desktop/mobile.

    #474470

    Marcel Warenburg
    Expired Member
    Post count: 24

    Hello,

    When we started developing this site GDv2 was not fully developed yet. It is not an option for us to switch now because that would take a lot of time. We will do that in the future.

    However shopuld it not be possible using a hook

    #474490

    Kor
    Moderator
    Post count: 16516

    Hi Marcel,

    Thanks for your reply. I’ll forward this to a developer and see if there can provide a solution for you.

    #475310

    Marcel Warenburg
    Expired Member
    Post count: 24

    Hello,

    Is there anything possible concerning this?

    Greetings,
    Marcel

    #475313

    Kiran
    Moderator
    Post count: 7069

    Hello Marcel,

    If you are using v2 then you can add rating from Pages > GD Detail Page > Add block > Post Rating.

    If you are using v1 then you can use following hook to display rating below the title.

    add_action('geodir_details_main_content', 'geodir_detail_page_review_rating', 20);

    Kiran

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

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

Open Support Ticket