listing/category title in template
This topic contains 19 replies, has 3 voices, and was last updated by Stiofan O’Connor 7 years, 9 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
January 22, 2018 at 5:38 am #413737
The template I’m using is displaying the page (etc) title on the header.
While individual places have no problem, categories/listings don’t display their title.The template is using this code
} else if (is_singular()){ echo get_the_title();to display the title for the pages, and it’s the same that affects the individual listings.
How can I have the category title displayed as well?January 22, 2018 at 1:51 pm #413830Hello,
Thanks for writing in today with your question.
You can have a look at this thread here:
https://wpgeodirectory.com/support/topic/display-category-title/
It’s a customization you can do yourself now or wait and see when GDV2 is released.
Thanks
January 22, 2018 at 5:50 pm #413868Thank you for your answer… I’m afraid I can’t make it work…
My wordpress knowledge is pretty limited 🙁January 23, 2018 at 8:57 am #413925Do you have the category description showing now?
Please share a link to an example page, and then the following information so we can take a look.
WordPress Credentials
WP Admin URL:
WP Admin Username:
WP Admin Password:FTP Credentials
FTP Host:
FTP Port:
FTP User:
FTP Password:January 23, 2018 at 10:40 pm #414064I’ve posted the details as a private reply, not sure if they got through…
January 24, 2018 at 10:50 am #414130I tried posting yesterday but I don’t think the posts went through…I’ll try again
January 24, 2018 at 10:57 am #414131This reply has been marked as private.January 24, 2018 at 12:02 pm #414137This reply has been marked as private.January 24, 2018 at 12:04 pm #414138Hello!
I added a category description and it shows on the category listing page.
Places > Place Categories > Category > Description
I added an H2 and P. You can customize your own CSS to change the display.
Add custom CSS at GD > Design > Scripts > CSS
See this page for more details about adding custom CSS:
https://wpgeodirectory.com/docs/customizing-your-style/
An example:
.term_description h2 { font: ultra-condensed italic small-caps bold 44px Georgia, sans-serif; }Let us know if you have any questions about that
January 24, 2018 at 1:44 pm #414170Thank you but that is not what I meant. The title was displaying at that part and I removed it through css.
My problem is that in my theme, title are displayed on the top. Over the header image. The geodirectory category doesn’t.
Please see the attached
In the forum link you’ve sent me, there was a link to another thread with similar info, and that’s what I tried to use, but apparently I failed :/
January 24, 2018 at 6:48 pm #414230This reply has been marked as private.January 24, 2018 at 8:38 pm #414269This reply has been marked as private.January 25, 2018 at 10:43 am #414348Your theme author needs to add one more check to the /parts/title.php around line 34
else if( is_post_type_archive() ){ post_type_archive_title(); }I have added this for you, you should either move this file to your child theme or get the theme author to add it to his/her theme.
Thanks,
Stiofan
January 25, 2018 at 2:51 pm #414398Thank you I have added that to the child theme.
This code gives the title “places”. What if I want the category name as title? For example “shop” or “eat & drink”?January 25, 2018 at 3:24 pm #414402Ah sorry i thought that was ur root page at first glance.
I have chnaged it to
else if( is_tax() ){ single_term_title(); } else if( is_post_type_archive() ){ post_type_archive_title(); }Thanks,
Stiofan
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket