• Resolved homemadejam

    (@homemadejam)


    I am using a child theme of Blogrid. I would like to remove the text “Posted on” before the date in post entries and in the summaries on the main blog page.

    I know how to remove the meta entry for dates completely. I don’t want that. Just to remove the text (“Posted on”) that gets put automatically in front of the date.

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Theme Author Superb

    (@themeeverest)

    Hi!
    We sadly don’t do support over these forums, please use this form to create a support ticket: https://superbthemes.com/customer-support/

    Sorry about the troubles

    Thread Starter homemadejam

    (@homemadejam)

    Why are you referring me to a premium-only support portal on a forum for the free version of the plugin?

    Theme Author Superb

    (@themeeverest)

    Hi! It’s not a premium only support, you don’t have to write an order number ??

    Thread Starter homemadejam

    (@homemadejam)

    The order number and website fields both outline in red as required fields when I try to submit my request.

    The site is under development and I do not have a URL I can share at the moment.

    Theme Author Superb

    (@themeeverest)

    No worries. If you don’t have the information for the required fields, you can put something else such as “using free version” instead of order number and “no URL” instead of the website link. You can put anything there that helps us understand your situation.

    Thread Starter homemadejam

    (@homemadejam)

    Submitting my original support request via your dedicated forum. Thanks!

    Thread Starter homemadejam

    (@homemadejam)

    You say “it’s not premium support” but when I posted the same support request to the forum you linked to I get this:

    Sadly, due to high demand, we can only offer help with css and theme customization(beyond features) etc. for customers eligible for premium support.

    Feels like I’m being jerked around, to be honest. If you can’t help, just say so, and I’ll go looking elsewhere.

    Theme Author Superb

    (@themeeverest)

    Hi @homemadejam as far as I can see you were told to try with the plugin Loco Translate, the support told you to write back if it didn’t work for you as well.

    Have you tried that solution?

    Thread Starter homemadejam

    (@homemadejam)

    Thank you, ThemeEverest, but the site in question already employs a number of plugins, and I do not want to add another, especially one as robust as a translation plugin, for what should be a simple code edit.

    I was able to locate the text string “Posted on” in the template-tags.php file, located in the “inc” folder of the theme. I replicated the folder to my child theme and edited the relevant code. Unfortunately, and surprisingly, it did not work.

    $posted_on = sprintf(
                /* translators: %s: post date. */
                esc_html_x( 'Posted on %s', 'post date', 'blogrid' ),
                '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>'
        );

    Luckily, a kind and diligent Redditor (u/PointsYak for the win!) helped me to figure out a solution. There’s a call in the parent functions.php file that always returns a path to the parent theme:

    require get_template_directory() . '/inc/template-tags.php';

    If one adds the following request to the functions.php file of child theme folder, the edited template-tags.php file of the child theme will start to have effect.

    require get_stylesheet_directory() . '/inc/template-tags.php';

    • This reply was modified 4 years, 7 months ago by homemadejam. Reason: clarity
    • This reply was modified 4 years, 7 months ago by homemadejam.
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Remove text “Posted on” from individual posts and from summaries?’ is closed to new replies.