I want to put PHP code for Smart Slider into a file directly. If possible, would you please tell me what file and where in it I should paste?
This topic has 12 replies, 4 voices, and was last updated 4 years, 3 months ago ago by east_ikebukuro
I want to put PHP code for Smart Slider into a file directly. If possible, would you please tell me what file and where in it I should paste?
Hello,
Do changes via a child theme to prevent losing them after the parent theme update.
Describe your request in more detail, please.
Regards
I want to paste following code for Smart Slider3 direcly into top page’s php file.
<?php
echo do_shortcode(‘[smartslider3 slider=”2″]’);
?>
The slider design by adding it on edit page with WPBakery Page Builder will look different.
I’m doing it on my another blog with some other theme, but with XStore I can’t find PHP file for front page.
Where can I paste the code directly into php file in child theme?
Hello,
There is no need to use the PHP code I think. Just Use Raw HTML element and add the shortcode in divs https://prnt.sc/103raow
<div>[smartslider3 slider="2"]</div>
Save and check if slider looks ok.
Regards
I tried the provided code, but still looks same.
I want to make it look like the attached picture.
If I pasted the php code directly into the file, it might work.
Is there anything I can do?
Hello,
Do you use WPBakery or Elementor as the page builder? Use page builder settings to stretch the row.
Or provide us with WP Dashboard access to your site.
Regards
Thanks for reply.
Actually I don’t understand well what WPbakery or Elementor are. Page builder for stretching row? I don’t understand what you are talking about….
It would be appreciated if you check my site.
let me reply again..
I attached confusing info in the last reply.
Hi
WPbakery or Elementor are two major page builder for wordpress, we have both of them with our theme package you can use one of them according to your requirements.
WPbakery
https://www.8theme.com/documentation/xstore/plugins/wpbakery-page-builder/
https://wpbakery.com/
https://wpbakery.com/video-tutorials/
Elementor
https://wordpress.org/plugins/elementor/
https://elementor.com/help/how-to-use-elementor/
I set 0px for margin padding border for “
” with WPbakery page builder. But nothing has changed.
Whan can I do now?
I want to try add code directly into php file, but do you mean you don’t allow users to customize files directly?
Hi
Please choose this option to stretch your page builder element. https://prnt.sc/105gaik
we have already share wpbakery page builder documentation please read it carefully and use your page builder according to your requirements.
it worked. thanks.
The issue related to '‘Where can I paste php code?’' has been successfully resolved, and the topic is now closed for further responses