Hello, i want to edit the single post headline / title. Im using ethos. Can you tell me where I would find the title that I could edit the heading tags?
Hi @fatcatgraphics,
Thanks for reaching out.
If you mean where to edit the single post headline and title then go to your Dashboard > Posts Page but if you are referring to something else, please provide us screenshots to better help you with your concern.
Hope that helps.
Thank you.
No I’d like the php file so I can add a subheadline field beneath the main post headline. Im using Advanced Custom Fields plugin to add a custom subheadline field and need to find where the main title is.
Hi @fatcatgraphics,
There are two ways to add the subtitle into the Ethos single post page, by using the action hooks or you can directly edit the .php page in your child theme.
To use the action hooks, please add the following code into the child theme functions.php.
function __x__addsubtitle_to_post_begin()
{
echo 'Subtitle Goes Here'; //change the content according to your need
}
add_action('x_after_view_ethos__content-post-header','__x__addsubtitle_to_post_begin',5);
If that does not help, and you need to edit the .php page, copy the content.php and _content-post-header.php file into your child theme framework\views\ethos folder, and edit the code as per your need.
Although this is another way to add the content, we strongly suggest using the action hooks to avoid any inconsistency in further theme updates.
Thanks
Thank you that worked! However on my homepage Im using a plugin, Post Grid Pro to display posts so it wont show the subtitles on those. Can you tell me a better way to display different posts from different categories as I have here: https://tuprensalocal.com/ so that I dont have to use the plugin and can figure out a way for the subtitles to display?
Hi @fatcatgraphics,
I suggest that you will stick with your current setup because we can’t replicate the layout with the elements we have on our themes.
Hope that helps.
Thank you.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.