Terra Slider
-
Hi,
1-How can I adjust “slide title” and “slide text” line height in Terra slider mobile view?
2-Is it possible to write multiple lines in the terra slider?Thank you..
The page I need help with: [log in to see the link]
-
Hi,
1) Use this CSS:
@media only screen and (max-width: 991px) { .parallax-text { top: 50% !important; } }2) See this support thread to use HTML tags like
<br>inside the Terre Slider.
https://ww.wp.xz.cn/support/topic/html-tags-in-the-description-dont-work-terra-slider/Yes, I changed the codes, but there was no change. Where do I apply the <br> tag?
You can now use <br> tags inside the Slide Text field where you put in your text for each slide.
Yes Slide Text works too. But Slide Title doesn’t work either. <br/> does not accept.
These are the same changes as before, but applied to the title and not the text.
To get this working in the slider title, navigate to wp-content/plugins/terra-themes-tools/inc/slider/terra-themes-slider.php.
Find the two lines that say
$output .= '<' . $title_tag . ' class="header-image-heading">' . esc_html($title) . '</' . $title_tag . '>';and change it to
$output .= '<' . $title_tag . ' class="header-image-heading">' . wp_kses_post($title) . '</' . $title_tag . '>';.Then navigate to wp-content/plugins/terra-themes-tools/inc/metaboxes/slides-metabox.php.
Find the line with
$title = isset( $_POST['terra_themes_tools_title'] ) ? sanitize_text_field($_POST['terra_themes_tools_title']) : false;and change it to
$title = isset( $_POST['terra_themes_tools_title'] ) ? wp_kses_post($_POST['terra_themes_tools_title']) : false;.Be aware that you will loose this change when you update the plugin.
• Yes, it is solved now. Great.
• For the 2nd slide, can I learn the css or html code to change the font color and shade of the font?
You are wonderful, thank you very much for your excellent service ..
To change the CSS of the second slide, try out this:
Slide Heading:
.terra-themes-header-slider .owl-item:nth-of-type(2) .parallax-text .header-image-heading { color: #f00; text-shadow: none; }Slide Text:
.terra-themes-header-slider .owl-item:nth-of-type(2) .parallax-text .header-image-text { color: #ff0; text-shadow: none; }• It worked, thank you ..
• Is it ok if I cut / paste the codes in the customization area to child theme? Or is there any other action required?
Which codes do you mean?
All codes
The CSS code should work in the Customizer or the Child Themes style.css.
The PHP code you modified in the Terra Themes Tools plugin will not working from the customizer (cause it’s PHP, not CSS) and will not work from the child theme since it’s plugin code you modified, which is not working by default out of child themes.
Just all the CSS code in the customizer. I mean by exporting (copy / paste) to the child theme CSS file.
This should work, yes.
I cut / paste it but the https://tuyograf.com/hizmetler/ page is broken. I got it back Version: I did 2.3.1 but it didn’t work.
Normally the CSS shouldn’t brake a page. Did you try to reset the cache plugin?
The topic ‘Terra Slider’ is closed to new replies.
