-
AuthorPosts
-
August 15, 2017 at 2:56 pm #839320
1. how can i make the blog titles smaller on the blog page?
2. on the BLOG page only – NOT SITEWIDE – BLOG PAGE ONLY (mine is called Episodes) … i want to make the blog title (post title) links (the ones that are huge right now) OPEN IN A LIGHTBOX instead of another new page. how can i accomplish this?
thanks!
chris
August 16, 2017 at 3:52 pm #839948any help please???
August 17, 2017 at 5:46 am #840217Hi!
Thank you for using Enfold.
1.) Please use the following css code to decrease the font size of the title.
.html_modern-blog #top .post-entry .post-title, .html_modern-blog .avia-content-slider .slide-entry-title { font-size: 1em; text-align: left; letter-spacing: 1px; }
2.) I’m sorry but this is not possible without doing major modification on the theme. You can try to utilize the theme’s lightbox but I doubt that you’ll like the result because it’s going to open the whole page inside the lightbox container. Add this code in the functions.php file.
function avia_default_title_filter($current_post) { if(!empty($current_post['title'])) { $heading = is_singular() ? "h1" : "h2"; $output = ""; //$output .= "<{$heading} class='post-title entry-title ". avia_offset_class('meta', false). "'>"; $output .= "<{$heading} class='post-title entry-title lightbox' ".avia_markup_helper(array('context' => 'entry_title','echo'=>false)).">"; $output .= " <a href='".get_permalink()."?iframe=true' rel='bookmark' title='". __('Permanent Link:','avia_framework')." ".$current_post['title']."'>".$current_post['title']; $output .= " <span class='post-format-icon minor-meta'></span>"; $output .= " </a>"; $output .= "</{$heading}>"; $current_post['title'] = $output; } return $current_post; }
Best regards,
IsmaelAugust 17, 2017 at 2:34 pm #840411ISMAEL … you are AWESOME! this did what i wanted it to do! :)
except … i really wanted to use this on the SEARCH page in the blog. i figured the blog would carry over the use of iframe for the links. it does not.
HOW CAN I APPLY THE CODE YOU SENT FOR THE “SEARCH” PAGE “INSTEAD” OF THE BLOG PAGE?
thanks so much!!
chris
August 18, 2017 at 5:10 am #840726bump. more help please! the code works for the BLOG page, which is what i originally wanted. INSTEAD, I NOW WANT IT FOR THE “SEARCH” PAGE. thanks in advance for helping!!
chris
August 18, 2017 at 7:58 pm #841011hey there @Ismael … i know you’ve got an answer in that genius brain of yours!
please help me take the code you sent and apply it to my SEARCH page. :)
thanks so much!
chris
August 20, 2017 at 2:04 am #841525my genius friend @tjswarbs78 !
i would love to ask for your help on this one. it seems to be stumping the moderators.
the code that ismael sent me works on the blog (episodes page) … but NOT on the search page.
i REALLY want the title links / results on the SEARCH page to open up in the lightbox.
(and i eventually want to disable the title links in the blog/episodes page since i have showing all content anyway.)
thanks so much for your time!! you truly are a genius.
blessings,
chris
August 21, 2017 at 7:29 am #841882Hi,
I’m sorry for the late response. If you want to apply it on the search page, just edit the includes > loop-search.php file then look for the following line.
echo "<h2 class='lightbox post-title entry-title'><a title='".the_title_attribute('echo=0')."' href='".get_permalink()."?iframe=true' $markup>".get_the_title()."</a></h2>";
We added “lightbox” inside the class attribute.
Best regards,
IsmaelAugust 21, 2017 at 1:39 pm #841992oh my goodness! thank you so very much! works GREAT!!
problem is solved! :)
chris
we can close this one.
August 22, 2017 at 8:01 am #842351 -
AuthorPosts
- The topic ‘blog titles on main blog page are HUGE … plus i want to open posts in lightbox’ is closed to new replies.