• Resolved hugehawk

    (@hugehawk)


    Hi,

    I use the read more feature for the longer posts on my blog. I figured out how to have it show the post title but I am stumped on how to make the whole line bold.

    Here is the code I am using:

    <?php the_content(“Continue reading ” . the_title(”, ”, false)); ?>

    I can make the Continue Reading part (in quotes) bold but I have not figured out how to make the whole line (including the title) bold. I’ve searched all over these forums and google but haven’t found anything.

    I’m sure it’s something easy but I’m new to this. Thanks in advance for any help you can provide.

Viewing 10 replies - 1 through 10 (of 10 total)
  • resiny

    (@resiny)

    try:

    <p style=”font-weight: bold;”><?php the_content(“Continue reading ” . the_title(”, ”, false)); ?>

    moshu

    (@moshu)

    Probably not, resiny.
    That would put the whole content, i.e. the whole post in bold, and I don’t think that’s what the OP wants.

    resiny

    (@resiny)

    ah. would this do it?

    the closing tag got cut out

    Thread Starter hugehawk

    (@hugehawk)

    Unfortunately that bolds the whole post. Anyone have any other ideas?

    Thanks

    Kafkaesqui

    (@kafkaesqui)

    <?php the_content('<strong>Continue reading ' . the_title('', '', false) . '</strong>'); ?>

    resiny

    (@resiny)

    <?php the_content(‘Continue reading ‘ . the_title(”, ”, false) . ‘‘); ?>

    That would be it, most likely

    resiny

    (@resiny)

    hup. the strong tag went and did itself

    moshu

    (@moshu)

    resiny, when you post code, please read the instructions below the text input area: code in between backticks ` – it usually is on the left top corner of your keyboard.

    resiny

    (@resiny)

    my bad. I somehow never saw that

    Thread Starter hugehawk

    (@hugehawk)

    Thanks, that solved it Resiny!

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Read More with title in bold’ is closed to new replies.