• Resolved rejs365

    (@rejs365)


    Hi,

    I was wondering if it is possible to add text before the publish date? So it instead of just showing the publish date for instance would say “Published on: 13. december 2018”

    Hope you can help.

    Thank you in advance

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • AddWeb Solution

    (@addweb-solution-pvt-ltd)

    Hello rejs365,

    Add below css code into your current active child theme’s style.css file or you can add additional css option in theme customizer

    .archive-post-date:before{
    	content:"published on:";
    }

    or

    replace your theme’s content.php file at line no.15 with
    <p class="archive-post-date">Published on:<?php the_time( get_option( 'date_format' ) ); ?></p>

    Hope this will helps you.

    Thanks.

    Thread Starter rejs365

    (@rejs365)

    Hi Addweb,

    Thank you for your help! That worked perfectly for the dates on the images on the frontpage(s)

    Do you know how i also can include it in the dates on the posts itself?

    Thank you

    AddWeb Solution

    (@addweb-solution-pvt-ltd)

    try the following css code.

    .post-date:before {
        content: "published on: ";
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding “Posted on” before publish date’ is closed to new replies.