GD v2, update title.

This topic contains 12 replies, has 3 voices, and was last updated by  Kiran 15 minutes ago.

Tagged: 

  • Author
    Posts
  • #485122

    Nyi Win
    Full Member
    Post count: 21

    Hi..

    I need to remove the word “Archives: Business Directory” from my title, when I am looking at a /business/category/restaurants-1/

    Where is that “Archives: Business Directory”

    Thanks

    #485128

    Kor
    Moderator
    Post count: 12292

    Hi Nyi Win,

    Thanks for your post. You can remove it using custom CSS as explained here https://wpgeodirectory.com/docs/customizing-your-style/ . If you’re not sure how, share your Website URL here so that I could check on it.

    #485135

    Nyi Win
    Full Member
    Post count: 21
    This reply has been marked as private.
    #485137

    Kor
    Moderator
    Post count: 12292
    This reply has been marked as private.
    #486301

    Nyi Win
    Full Member
    Post count: 21
    This reply has been marked as private.
    #486465

    Kor
    Moderator
    Post count: 12292

    Hi Nyi Win,

    Thanks for your reply. Could you share your Website WP admin access here in private reply so that I could check on it?

    #486475

    Nyi Win
    Full Member
    Post count: 21
    This reply has been marked as private.
    #486660

    Kiran
    Moderator
    Post count: 4582

    Hello Nyi,

    GeoDirectory archive page titles are generated dynamically. For this page title & meta settings available at GeoDirectory > Settings > General > Titles & Meta.

    When viewing pages from front-end it set title & meta to the page via hook.
    Here is hook that sets title to the page. https://github.com/AyeCode/geodirectory/blob/master/includes/class-geodir-seo.php#L101
    and here is code that assign the title to archive page. https://github.com/AyeCode/geodirectory/blob/master/includes/class-geodir-seo.php#L271

    Let us know.

    Thanks,
    Kiran

    #486757

    Nyi Win
    Full Member
    Post count: 21
    This reply has been marked as private.
    #486812

    Kiran
    Moderator
    Post count: 4582

    Hi,

    You misunderstood what i replied in my last reply. You don’t have to remove_filter because hooks were not executed. If hooks were executed then there would be a title like “All Places”.

    We are using GeoDirectory archive pages dynamically as a listing archive pages.
    “Archives: Business Directory” title is by default displayed. If you want to replace “Archives: Business Directory” to like “All Places” then you have to execute hooks i mentioned in my previous reply. Those hooks are executed only on frontend when viewing page from browser. In app those hooks can’t be executed.

    So you need to execute those hooks from your app. You have to write code(with help of links i provided in my last reply) that converts title from “Archives: Business Directory” to “All Places”. We are already doing it but unfortunately it is not supported in app.

    Let us know.

    Thanks,
    Kiran

    #486969

    Nyi Win
    Full Member
    Post count: 21

    Hi..

    Thank you helping.. but we are still having issue implementing the hook..

    ““Archives: Business Directory” title is by default displayed. If you want to replace “Archives: Business Directory” to like “All Places” then you have to execute hooks i mentioned in my previous reply.”

    Can I get a sample code, so that as my attempt has not being a success

    Many thanks

    Win

    #486971

    Nyi Win
    Full Member
    Post count: 21
    This reply has been marked as private.
    #487713

    Kiran
    Moderator
    Post count: 4582

    Hello,

    Can I get a sample code, so that as my attempt has not being a success

    I have already provide sample code in post #486660
    You have to refer this logic to achieve that.

    it is saying “Archives: Business Directory” .. not “Archive” .. it has an ‘s’ .. so I am abit lost there too

    You can adjust it from Pages > GD Archive Page

    Kiran

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

You must be logged in to reply to this topic.