Tagged: accordion slider
First off, you guys rock. Love the theme and all the updates just make it better. Now for the question at hand.
I would like to make the headlines on the accordion slider on my site slightly larger and bold. Basically I just want them to stand out a little more from the excerpt text and background image.
Is that a simple fix?
I tried adding this text to the custom CSS and it does not seem to work.
.aviaccordion-title {
text-transform: none;
font-size: 18;
font-weight: bold;
}
Nevermind! I figured it out.
#top .aviaccordion-title {
font-size: 25px;
font-weight: bold;
text-transform: none;
}
I would however like to limit the preview text in the excerpt to only show the first two lines of text or so. Maybe 140 characters??? Looking for that in the code but can’t seem to find where it is limiting the excerpt size.
Hey!
Open up wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_accordion.php and replace:
$output .= !empty($slide->post_excerpt) && !empty($this->config['excerpt']) ? "<div class='aviaccordion-excerpt' {$markup_content}>".wpautop($slide->post_excerpt)."</div>" : "";
with
!empty($slide->post_excerpt) avia_backend_truncate($slide->post_excerpt, 60, " ", "…", true, '');
$output .= !empty($slide->post_excerpt) && !empty($this->config['excerpt']) ? "<div class='aviaccordion-excerpt' {$markup_content}>".wpautop($slide->post_excerpt)."</div>" : "";
and replace 60 with the number of characters you want to show in the excerpt text.
Best regards,
Peter