Support Forums for LiveMesh Themes & Plugins › Forums › Enigmatic Theme Support › Change the title of the blog post
- This topic has 3 replies, 2 voices, and was last updated 11 years, 2 months ago by redlilydream.
-
AuthorPosts
-
July 21, 2013 at 2:08 am #1188livemeshKeymaster
Unlike other elements in the site like pages or custom post types like portfolio, currently title of a blog post shows up below the top header while leaving the top header to populate a tagline modifiable through the theme options. The default title is “Blog”. If you need to modify this, pls make the following change to the code –
Look for function
mo_populate_tagline()
in the fileframework/functions/utility-functions.php
in theme folder, look for the line} elseif (is_singular('post')) { echo '
' . $tagline . '
';and remove it or make it –
} elseif (is_singular('post')) { echo mo_get_entry_title();
Then remove the below line from the file
single.php
in theme folder (line number 88 ) –Pls note that the current way of handling the blog post title enables us to conform to http://microformats.org/wiki/hatom microformat. Not sure it matters anymore due to declining popularity of rss feeds.
July 21, 2013 at 8:04 pm #1196redlilydreamMemberThank you. This is very good info!
I’d like to know how to make the blog title the same throughout, though. My blog heading looks like this:
My Blog Name
My Blog Description
ExampleWhich is great. But when you click on an individual blog post, the heading looks like this:
My Blog Name
How can I make ‘My Blog Description‘ in paragraph form to show under ‘My Blog Name‘ in individual posts?
This is what’s in utility-functions.php:
function mo_populate_tagline() { /* Default tagline for blog */ $tagline = mo_get_theme_option('mo_blog_tagline', __('My Blog Name', 'mo_theme')); $default_homepage_title = get_bloginfo('name') . __(' Home', 'mo_theme'); $homepage_tagline = mo_get_theme_option('mo_homepage_tagline', $default_homepage_title);
Thanks again for pointing me in the right direction!
July 22, 2013 at 7:53 am #1204livemeshKeymasterYou can change the function to something like below to obtain the result you desire –
function mo_populate_tagline() { if (is_singular('post')) { echo '
'; echo ''; return; } /* Default tagline for blog */ $tagline = mo_get_theme_option('mo_blog_tagline', __('Blog', 'mo_theme')); $default_homepage_title = get_bloginfo('name') . __(' Home', 'mo_theme'); ...... .......The Cure
'; echo 'An eCommerce blog from the creators of Design Flu™
'; echo 'I utilized the code you used for the blog page to populate the title for individual posts. Hope that helps.
July 22, 2013 at 3:00 pm #1209redlilydreamMemberPerfect! Thank you! I really suck at php. 🙂
-
AuthorPosts
- The forum ‘Enigmatic Theme Support’ is closed to new topics and replies.