WordPress.org

Ready to get started?Download WordPress

Forums

SubHeading
[resolved] Paragraph in subheading. (5 posts)

  1. cgoldt
    Member
    Posted 3 years ago #

    Hello,

    I'm using subheading, and it works quite well!
    I just have a problem with inserting paragraphs.

    I tried inserting <br /> and <p>, even \n - but after publishing the post, it disappears. If I'm inserting any other html tag it works (like <a href></a>, <em>, <b> etc.)...

    Any help out there??
    Thanks a lot,
    Karina

    BTW: <span style="color:#999999;"></span> doesn't work either.

  2. cgoldt
    Member
    Posted 3 years ago #

    nobody? :|

  3. cgoldt
    Member
    Posted 3 years ago #

    hmm, this shouldn't be so complicated for people who know how the plugin works. 36flavours maybe??

  4. Steve
    Member
    Posted 3 years ago #

    Hi,

    A subheading is more like a like rather than an excerpt, therefore the default formatting operations are carried out on the text entered (such as stripping certain HTML tags).

    You can wrap the value when outputting the subheading using something similar to the following:

    <?php if (function_exists('the_subheading')) { the_subheading('<p>', '</p>'); } ?>

    If I had more time, I would suggest adding an option / setting to the plugin allowing HTML to be entered.

    - Steve

  5. cgoldt
    Member
    Posted 3 years ago #

    Hi Steve!

    Thanks for your answer!
    I would like to insert <br /> within the subheading, not wrapping it in a <p> for example. So that means, there is no possibility to do this with the plugin? Strangly it works with the other html-tags like links and bold.

    hmmm.

    Thanks again.
    Karina

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags