Category Button on the Home

This topic contains 10 replies, has 3 voices, and was last updated by  Giri 7 years, 5 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #388460

    Jay Kanabar
    Expired Member
    Post count: 166

    On my request you had removed the Events Category Button on the Home Page (see attached image), but I would like to have this back.

    If I remember correctly it was done through the Snippet.

    Thanks for your help.
    Jay

    #388462

    Jay Kanabar
    Expired Member
    Post count: 166
    This reply has been marked as private.
    #388485

    Guust
    Moderator
    Post count: 29970

    I have de-activated the snippet and removed the CSS, so it behaves normal now.
    Which is not as you think in your images, only categories of one CPT are shown there at the same time, to see categories of a different CPT you need to change the CPT selector in the search form above it.

    This was your earlier request: https://wpgeodirectory.com/support/topic/move-cpt/

    Thanks

    #388538

    Jay Kanabar
    Expired Member
    Post count: 166

    Thanks Guust

    I have made changes towards what I want (see attached image)

    1. Popular Categories to be removed from the Home Page.
    2. This to replaced with CPT Listing. I manage to create this in the Top Section of the Home Page but cannot figure out how to move it to the centre below the Search Box? May be some CSS.

    If I get the instructions, I am happy to do it.

    Jay

    #388541

    Guust
    Moderator
    Post count: 29970

    Have a look at https://wpgeodirectory.com/docs/faqs/how-do-i-remove-the-popular-categories-section-from-the-home-page/
    Replace

    echo do_shortcode('[gd_popular_post_category category_limit=5]');

    with

    echo do_shortcode('[gd_cpt_categories]');

    See more at https://wpgeodirectory.com/docs/core-shortcodes/#ctp-cats

    Thanks

    #388660

    Jay Kanabar
    Expired Member
    Post count: 166

    Thanks Guust. I manage to hide/remove the categories.

    Now how do I move the CPT list to the same position? (see the previous image)

    Jay

    #388675

    Guust
    Moderator
    Post count: 29970

    Hi Jay, read my previous reply again. You deleted the code instead of replacing it.

    #388692

    Jay Kanabar
    Expired Member
    Post count: 166

    Hi Guust,
    Made no difference !

    I edited the file:
    /wp-content/themes/supreme-directory/inc/geodirectory-compatibility.php

    Jay

    #388694

    Giri
    Expired Member
    Post count: 3155

    Hi Jay,

    You seem like you are undoing the changes we did in the last thread. If I recall that correctly, I never modified any code or asked you to modify any code in the supreme file. We did everything in the code snippets.

    So you should get back old layout when you deactivate tat snippet.

    Did you modify anything else without our knowledge?

    #388708

    Jay Kanabar
    Expired Member
    Post count: 166

    Deactivating the snippet resolved the issue.

    Thanks all.

    #388710

    Giri
    Expired Member
    Post count: 3155

    You are welcome.

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount