-
AuthorPosts
-
January 6, 2016 at 7:18 pm #560716
Hi,
In the following of this resolved thread, I discovered that the quote posts’ titles became now without any link and bigger then other titles: http://www.newpointdeview.com/author/anton-malafeev/page/6/
Could you give the code to correct that, pls ?
January 7, 2016 at 3:16 am #560926Hi Anton!
I do not see any quotes. Can you take a screenshot and highlight what your trying to do so we can get a better idea?
Best regards,
ElliottJanuary 7, 2016 at 10:26 am #561090This is normal you don’t see any quote. Because, as mentionned, I have requested in this resolved thread to make the Quote posts’ titles normal, llike all others. So, Ismael gave me this code :
/** * Function for posts of type quote: title is wrapped in blockquote tags instead of h1 */ function avia_quote_content_filter($current_post) { if(!empty($current_post['title'])) { //$current_post['title'] = "<div class='". avia_offset_class('meta', false). "'><h1 class='first-quote'>".$current_post['title']."</h1></div>"; $current_post['title'] = "<h1 class='first-quote' ".avia_markup_helper(array('context' => 'entry_title','echo'=>false)).">".$current_post['title']."</h1>"; } return $current_post; }
And now I got this result — image
So I’d like the right code to make this title looking like others — with a link and the same font size, please.
January 7, 2016 at 6:06 pm #561401Hey!
Please try changing the code to following one
/** * Function for posts of type quote: title is wrapped in blockquote tags instead of h1 */ function avia_quote_content_filter($current_post) { if(!empty($current_post['title'])) { //$current_post['title'] = "<div class='". avia_offset_class('meta', false). "'><h1 class='first-quote'>".$current_post['title']."</h1></div>"; $current_post['title'] = "<h1 class='first-quote' ".avia_markup_helper(array('context' => 'entry_title','echo'=>false))."><a href='".get_permalink()."' rel='bookmark' title='". __('Permanent Link:','avia_framework')." ".$current_post['title']."'>".$current_post['title']."</a></h1>"; } return $current_post; }
and then add following code to Quick CSS in Enfold theme options under General Styling tab
.entry-content-header h1.first-quote { font-size: 19px; }
Cheers!
YigitJanuary 8, 2016 at 12:26 am #561656Resolved
Thank youJanuary 8, 2016 at 12:30 am #561659 -
AuthorPosts
- The topic ‘Quote posts’ titles without any link and bigger then other titles’ is closed to new replies.