Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #13461

    Dear dudes,

    1 – How may I get rid ot the tags in blog page – not the post pages

    2 – How may I translate the ‘read more’ button in blog page

    Thanks in advance for your help

    #79334

    Hello? Any answers?

    #79335

    Hi leocantoeme,

    To answer your first question you would need to add the following to your custom.css or Quick CSS under Theme Options.

    body.page-id-## .blog-tags {
    display: none;
    }

    The ## should be replaced with the ID of your Blog page. You can find this either by “View Source” or “Page Source” in your browser and looking at the BODY tag.

    Example:

    <body id="top" class="page page-id-56 page-template-default">

    You can translate the Read More button by editing the templates template_blog.php and single.php. The line you’re looking for is:

    the_content('Read more');

    You’ll also want to edit archive.php at this line:

    <a href="<?php echo get_permalink(); ?>" class="more-link">Read more</a>

    You said Blog page but in case you want to translate for the Portfolio section as well you would edit the same line as you did in archive.php except you the template you edit would be template_portfolio.php.

    Regards,

    Mya

    #79336

    Sorry, it doesn’t work…

    Regarding the tags:

    In upscale, the custom.css file is a empty file, there is only one comment there. Anyway I’ve inserted the line you wrote, with the page ID 56 (checked in the browser), but it had no results.

    Regarding the translations:

    Both the archive.php and the template_blog.php don’t have any line regarding the “read more”.

    May you help me?

    #79337

    Hi Mya,

    Reading it again I’ve noticed you have put the option to insert the tag in the quick css. Then I tried, and then it did work!

    So, many thanks. Problem solved.

    Regards

    Leonardo

    #79338

    Hi!

    Glad that the issue is solved now :)

    Regards,

    Peter

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Getting rid of the tags in blog page and read more translation’ is closed to new replies.