• Resolved michel.b

    (@michelb-1)


    Hi,
    I want to change Single Blog Post Metadata Font Size. Using the class .single-post ul.meta, as indicated in the documentation, does not work because of inline css in the single post page which have priority, like style=”font-size: 14px !important; line-height: 21px !important;”
    Could you please explain what I have to copy and modify in my child theme to change the meta data.
    Thank you.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hello,

    Please share the page URL where you trying to change the font and facing the issue.

    Thread Starter michel.b

    (@michelb-1)

    Hello,

    Thank you for your fast response.
    The site is private. Give me an email address and I will create an account for you. You will be able to sign in with your Google, Microsoft, Yahoo or LinkedIn authentication.

    Another point : I am using Elementor (free), could it be the origin of this in line css ?

    If it can help, please find below the part of the code which relates to the date of a single post just below the title :

    <ul class="meta ospm-default clr" style="font-size: 14px !important; line-height: 18.2px !important;">
    
    <li class="meta-date" itemprop="datePublished" style="font-size: 14px !important; line-height: 21px !important;"><span class="screen-reader-text" style="font-size: 14px !important; line-height: 21px !important;">Post published:</span><i class="icon-clock" aria-hidden="true" style="font-size: 17px !important;"></i>17/02/2021</li>
    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please don’t offer to send or post logon credentials on these forums: https://www.ads-software.com/support/guidelines#the-bad-stuff

    You may trust this developer/author, but it normalizes a dangerous practice. It’s a fine line, but one that we need to enforce. Thanks for your cooperation.

    Thread Starter michel.b

    (@michelb-1)

    OK Steven, I understand and I will follow your guideline.
    Michel.

    Hello,

    Please share the related snapshots of the issue to check it, because sometimes it needs the URL to inspect it to find the correct solution for the issue.

    Thread Starter michel.b

    (@michelb-1)

    I copied a screenshot of a post I was examining here :
    https://drive.google.com/file/d/1r_FEXRcDvtdGUveew5PILMdiY2A9QAmK/view?usp=sharing

    Thread Starter michel.b

    (@michelb-1)

    I have found a solution but I am a little frustrated because I do not understand why it woks.
    I am using Oceanwp and a child theme configured with the plugin Child Theme Configurator.
    I did try to use the customizer of both the theme and the child to insert the class .single-post ul.meta, as indicated in the documentation. But it did not work.

    I configured a new child theme with the option “Do not add any parent stylesheet handling” and I used Child Theme Configurator to create the class. It worked ! Oceanwp inserted in my post pages inline styles with my values.

    It would be great if someone could explain to me why and how it worked. It would help me a lot to progress in my understanding of WordPress. Thank you.

    Hello,

    So it seems the issue with the child theme which you have created with the plugin.
    That is the reason we always recommend using our official child theme.

    https://docs.oceanwp.org/article/90-sample-child-theme

    Thread Starter michel.b

    (@michelb-1)

    Sorry I made a mistake

    • This reply was modified 3 years, 8 months ago by michel.b.

    is it fixed now?

    Thread Starter michel.b

    (@michelb-1)

    yes, thank you.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘I want to change Single Blog Post Metadata Font Size’ is closed to new replies.