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

  1. lukecjdavis
    Posted 3 years 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,

  2. noahjonah
    Posted 3 years 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


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

  3. Michael Cain
    Posted 3 years 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.


  4. lukecjdavis
    Posted 3 years 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