Resolved

Adding Subtitle

Ultra Theme started by eri-cat Nov 15, 2017 3 replies
eri-cat Nov 15, 2017 · 8:25 pm #8284

Wondering if I could get some assistance with adding a subtitle to pages and posts? I have tried a few plugins but I don’t think the theme is built for subtitles. (I am hoping it can appear under the page title, above the featured image.) Thanks!

Andrew Misplon Puro Nov 15, 2017 · 8:28 pm #8285

Hi eri-cat

Sure. How would you enter the sub-title? Where would that information be stored? You could perhaps install Advanced Custom Fields and setup a custom field that way. It would then require a child theme to render the field on the site front end.

eri-cat Nov 15, 2017 · 11:23 pm #8288

Ok, I’ve downloaded the ACF plugin and I’ve started my child theme folder (I wasn’t using one before, only had been editing CSS) with a style.css and functions.php file.

ACF
Field Label: subtitle
Field Name: subtitle

Can you help explain which file(s) I will need to create in my child theme to display this field?

Also, have I enqueued the parent styles correctly? New to this!

<?php
add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );

function enqueue_parent_styles() {
   wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
}
?>
4 posts