• Resolved ReinoutSch

    (@reinoutsch)


    Hi! First of all; I love this plugin. But I can’t get something to work. I want to style a ‘Read more’ This is the code:

    <h2 class=”entry-title” style=”font-size:15px; color:red; text-align:right; margin-top:-25px;”>“>Read more</h2>

    As you can see I added color:red; but the link color won’t change. Is there any way to change the color of the link?

    https://ww.wp.xz.cn/plugins/posts-in-page/

Viewing 1 replies (of 1 total)
  • Plugin Author Eric Amundson

    (@sewmyheadon)

    Howdy ReinoutSch,

    Thanks for the question.

    The solution, most likely, lies in one of two places:

    1. Your code snippet has an error, it should be:

    <h2 class="entry-title" style="font-size:15px; color:red; text-align:right; margin-top:-25px;">Read more</h2>

    Note: you had an extra "> after the opening <h2> tag.

    2. If that doesn’t fix it, I’d take a look at your theme’s CSS file and see if there’s a style that’s affecting your header. An inline style should outrank any linked CSS, so I think the fix is likely in #1 above.

    Not that you asked, but if it were me, I’d opt to change the style in my CSS, rather than inline for future flexibility.

    Cheers!

Viewing 1 replies (of 1 total)

The topic ‘Styling 'Read More'’ is closed to new replies.