WordPress.org

Ready to get started?Download WordPress

Forums

Superhero
[resolved] Sub Heading for Slider Images (4 posts)

  1. lukecjdavis
    Member
    Posted 1 year ago #

    Hi there,

    I have decided to use this theme for my first blog - it looks great, and with a bit of tweaking it looks like it is exactly what I was after!

    I'm just wondering if it is at all possible to configure the text field for the heading of posts featured in the image slider to have a sub heading too, of a slightly smaller font? For example:

    Oblivion <- Main Heading
    Is it Tom Cruise's best film? <-Sub heading

    Many thanks in advance,
    L

  2. noahjonah
    Member
    Posted 1 year ago #

    1. Open the desired "page-template.php"
    2. Insert your desired "<sub-heading>" just below the "Main Heading Div"
    3. Style as you like in style.css

    or:

    Accomplish this through a "custom-field" / "php call"

  3. Michael Cain
    Member
    Posted 1 year ago #

    Hi there,

    The file you'd want to edit would be "slider.php", around line 30. I'd recommend using WordPress's Custom Fields for a sub-heading.

    http://codex.wordpress.org/Custom_Fields

  4. lukecjdavis
    Member
    Posted 1 year ago #

    Excellent - I done it through creating a custom field and editing the slider.php field with the following value straight after the </H2> tag:

    <?php $key="SubHeading"; echo get_post_meta($post->ID, $key, true); ?>

    The best thing about this is that as it is already in an existing loop, the sub-headings change for each post on the slider to correspond with each article.

    Thanks very much to you both! Much appreciated. :-)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic