GD v2, update title.
This topic contains 12 replies, has 3 voices, and was last updated by Kiran 6 years, 5 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: title
-
AuthorPosts
-
May 8, 2019 at 12:02 pm #485122
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
May 8, 2019 at 12:36 pm #485128Hi 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.
May 8, 2019 at 12:51 pm #485135This reply has been marked as private.May 8, 2019 at 1:25 pm #485137This reply has been marked as private.May 14, 2019 at 8:12 am #486301This reply has been marked as private.May 14, 2019 at 6:34 pm #486465Hi 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?
May 14, 2019 at 7:29 pm #486475This reply has been marked as private.May 15, 2019 at 1:57 pm #486660Hello 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#L271Let us know.
Thanks,
KiranMay 16, 2019 at 1:46 am #486757This reply has been marked as private.May 16, 2019 at 9:56 am #486812Hi,
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,
KiranMay 16, 2019 at 10:39 pm #486969Hi..
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
May 16, 2019 at 10:41 pm #486971This reply has been marked as private.May 21, 2019 at 10:57 am #487713Hello,
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
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket