-
AuthorPosts
-
May 10, 2018 at 9:11 pm #954881
Hello Support,
I don’t want to use breadcrumps on my page, which leads me to the following problem.
If category or tag pages are listet they have no “title”.
The description on the category page is shown at the top of the page for example, but no title.
Please see: https://www.videospielgeschichten.de/category/spielebranche/
How can I show up the title like “Archiv für die Kategorie: Spielebranche” just above the description in H1?
Also: how can I define the number of posts shown in a category post grid?
Kind regards
AndreMay 12, 2018 at 6:44 am #955554May 12, 2018 at 9:09 am #955629Hi Victoria,
thanks a lot!You need to edit the archive.php and add the title there.
How can I do this to have the dynamic Category name in the archive.php?
Kind regards
AndreMay 12, 2018 at 12:52 pm #955709Hi Andre,
Here is a thread for you to consider
https://wordpress.stackexchange.com/questions/131749/display-current-category-title-on-category-pageIf you need further assistance please let us know.
Best regards,
VictoriaMay 14, 2018 at 9:40 am #956323Hi Victoria,
oh, thanks! I’m sure this will help me.
I’ll try this in the next days and will post my result here.
AndreMay 14, 2018 at 3:14 pm #956488Hi,
Great, please let us know if you should need any further help on the topic.
Best regards,
RikardMay 15, 2018 at 6:50 pm #957173Hi Support,
I’m sorry I don’t get it.
How do I have to modify archive.php and tag.php to show the title?
Kind regards
AndreMay 18, 2018 at 4:31 am #958417Hi,
There’s an available filter for this one. Please add this code in the functions.php file.
// https://kriesi.at/support/topic/woocommerce-product-attribute-archive-does-not-use-correct-title/#post-919530
Best regards,
IsmaelMay 18, 2018 at 6:45 am #958443Hi Ismael,
thanks for that.
I did include the code in my functions.php file but the title is still not shown.
Please see: https://www.videospielgeschichten.de/category/spielebranche/
I would like to show the title right above the category description.
Do I make something wrong?
Kind regards
AndreMay 18, 2018 at 12:46 pm #958579Hi Support,
i think i could fix it.
Added the following line just above the description in archive.php (in child theme):
<h1 class="custom-cat-title"> <?php single_cat_title('Beitragskategorie: '); ?> </h1>
Custom style can be applied to “custom-cat-title”.<main class='content <?php avia_layout_class( 'content' ); ?> units' <?php avia_markup_helper(array('context' => 'content','post_type'=>'post'));?>> <h1 class="custom-cat-title"> <?php single_cat_title('Beitragskategorie: '); ?> </h1> <?php $tds = term_description(); if($tds) { echo "<div class='category-term-description'>{$tds}</div>"; } ?>
Kind regards
AndreMay 19, 2018 at 1:33 pm #959071Hi Andre,
Glad you got it working for you and thank you for sharing! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.