Forums

[plugin SubHeading] subheading on same line as the heading? (2 posts)

  1. acfd
    Member
    Posted 2 years ago #

    I have read this post (http://wordpress.org/support/topic/346235?replies=3) and am at a similar place to noodlenuts i.e a newbie who doesn't know about the php code, and therefore have no idea where to place things to make things appear where I want!
    I'd like the subtitle to appear either immediately to the right of the main title. I'm using the Hybrid theme and have created a child theme for Hybrid.

    Through reading the response I have been brave enough to paste the <?php the_subheading(); ?> into the template I am using (no-widgets) but the response goes on to suggest a way to put the subheading on the same line (which is what I want) but i have no idea where this code would be placed in my theme or even is this solution would apply to other themes. Any suggestions/advice? Thanks

    http://wordpress.org/extend/plugins/subheading/

  2. Steve
    Member
    Posted 2 years ago #

    Hi,

    There are a few possible methods you could use.

    The first:

    Insert it directly after the call to <?php the_title(); ?>, so it looks like <?php the_title(); the_subheading(); ?>.

    If you want it to be styled differently, you could wrap this in an additional tag, so it looks something like:

    <h1><?php the_title(); ?> <span><?php the_subheading(); ?><span></h1>

    Then in your CSS declare the additional style, for example:

    h1 span {
    font-size: 50%;
    }

    Alternately:

    Paste something like <?php the_subheading('<h2>', '</h2>'); ?> after the closing title heading tag (this is probably a </h1> tag, then reposition the title with CSS.

    Hope this helps a little.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags