• Resolved paullam328

    (@paullam328)


    Website link: https://ubcmun.org/
    Page I would like to edit: front page

    When I use the “customize” button to edit the front page, I realized that you cannot insert 2 subtitles of different lines. In this case, I would like to insert Location and Date, which each of them is being written in separate line respectively. The subtitle MUST be located on the slider (sliding background), and underneath of the large title.

    e.g., front page should look like
    UBCMUN MMXVII (title)
    Location:… (subtitle)
    Date:… (subtitle)

    With months of experience in html and css, I am able to locate the lines of html code that the subtitle is located at using the developer’s tools. Therefore, I tried really hard to find the original HTML file of the front page, which is obviously unsuccessful.

    Therefore, I would like to ask for a way to add a multiple-line subtitle in the frontpage, that is located within the sliding header of the Sydney theme. Or else I would like to know the exact location to the HTML file of the header, so that I can modify the html code directly.

    • This topic was modified 8 years, 5 months ago by paullam328.
    • This topic was modified 8 years, 5 months ago by paullam328.
    • This topic was modified 8 years, 5 months ago by paullam328.
    • This topic was modified 8 years, 5 months ago by paullam328.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello there,

    I would like to apologize in advance for the delay.

    The main slider markup is defined in the sydney_slider_template() function in the sydney/inc/slider.php file. To modify it, copy that function into your child theme’s functions.php file. So that you can edit in there without loosing the changes you’ve made once you update the theme in future.

    You will have something like the following in your child theme’s functions.php file:

    
    function sydney_slider_template() {
    
      // Code
    
    }
    

    The code for slide title and subtitle are:

    
    <h2 class="maintitle"><?php echo esc_html($slider_title_1); ?></h2>
    <p class="subtitle"><?php echo esc_html($slider_subtitle_1); ?></p>
    

    Regards,
    Kharis

    Thread Starter paullam328

    (@paullam328)

    Thanks a million!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding a Multiple-line subtitle’ is closed to new replies.