• Resolved wfeu

    (@wfeu)


    On all the blog category post pages they have a h1 page-title and a folder icon.

    `.category .page-title::before {
    content: “?”;
    },

    I have a static frontpage and a static blog posts page.

    Im trying to add this to the blog posts page. Can you point me in the right direction?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Theme Author Tomas Mackevicius

    (@tomasm)

    Because you know what text should be there, you don’t need to do it dynamically, you can see the source of the loaded cat page and copy that part of HTML into your template as simple HTML.

    And replace cat name with your text.

    Thread Starter wfeu

    (@wfeu)

    my Blog goes to a Posts Page would that be the full-width.php and front-page.php ?

    Thanks

    Theme Author Tomas Mackevicius

    (@tomasm)

    Thread Starter wfeu

    (@wfeu)

    Reading on wordpress it says for custom blog posts index to use home.php in a theme.

    “To create a custom blog posts index template, include the following in the Theme: home.php “

    I copied category.php from Tiny Framework Parent inc/examples renamed it to home.php and put it in the child theme.

    My blog posts page now has a title like category archive pages without the folder icon called “Archives”

    Where/what would I change to rename that to Blog ?

    In my new child theme folder home.php I have been trying this part:

    <header class="page-header">
    				<?php
    					the_archive_title( '<h1 class="page-title" itemprop="headline">', '</h1>' );
    					the_archive_description( '<div class="taxonomy-description">', '</div>' );
    				?>

    Thanks

    Theme Author Tomas Mackevicius

    (@tomasm)

    You can remove whole php part and just use normal HTML, like:

    <h1 class=”blog-title” itemprop=”headline”>Blog</h1>

    Then use CSS to add icon if you want. As example look in the main style.css for: .category .page-title:before

    In your case it can be only as:

    .blog-title:before {…

    Thread Starter wfeu

    (@wfeu)

    awesome~! Thanks, works great.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Adding Page title & icon to blog posts page’ is closed to new replies.