rickyp_99
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Customizr] Different button text for featurePerfect! Many thanks!
Forum: Themes and Templates
In reply to: [Customizr] Adding line break to slider caption descriptionI found another way to do it, specific to a slide
In the meta description of the slide, I add a \r\n tag. For example:
Double-sided Business Cards from $49,99 \r\n Business cards should be a conversation starter – something to be kept and acted on.
I create a child class-content-slider.php and locate this line:
$text = ( strlen($text) > $default_text_length ) ? substr( $text,0,strpos( $text, ' ' ,$default_text_length) ). ' ...' : $textAnd add this line right after:
$text = str_replace('\r\n','<br/>',$text);Next you have to find this line in the same document:
$data['text'] = esc_html( apply_filters( 'tc_slide_text', $data['text'], $id ) );
Copy, paste it on the next line and coment it, so you will have somethig like it:
//$data[‘text’] = esc_html( apply_filters( ‘tc_slide_text’, `$data[‘text’], $id ) );
$data[‘text’] = apply_filters( ‘tc_slide_text’, $data[‘text’], $id );`Forum: Themes and Templates
In reply to: [Customizr] Adding line break to slider caption descriptionThanks!
In the meantime, I will look into the code myself to try to figure it out.
If you find something in a few days let me know.
I hope the author will work on an easier way to achieve this directly in the theme.
Forum: Themes and Templates
In reply to: [Customizr] Adding line break to slider caption descriptionThanks Galegri,
Your solution is generic for all slides. Is there a way to target only a specific slide in the slider?
I do not want to apply this pattern to all the slides.