Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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
    Andre

    #955554

    Hey Andre,

    You need to edit the archive.php and add the title there.

    The number of post for the grid can be changed here
    Image 2018-05-12 at 12.44.06.png

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #955629

    Hi 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
    Andre

    #955709

    Hi Andre,

    Here is a thread for you to consider
    https://wordpress.stackexchange.com/questions/131749/display-current-category-title-on-category-page

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #956323

    Hi Victoria,
    oh, thanks! I’m sure this will help me.
    I’ll try this in the next days and will post my result here.
    Andre

    #956488

    Hi,

    Great, please let us know if you should need any further help on the topic.

    Best regards,
    Rikard

    #957173

    Hi 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
    Andre

    #958417

    Hi,

    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,
    Ismael

    #958443

    Hi 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
    Andre

    #958579

    Hi 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
    Andre

    #959071

    Hi 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

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.