Where can I paste php code? - by east_ikebukuro

This topic has 12 replies, 4 voices, and was last updated 4 years, 3 months ago ago by east_ikebukuro

  • Avatar: east_ikebukuro
    east_ikebukuro
    Participant
    February 21, 2021 at 14:18

    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?

    11 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 21, 2021 at 15:59

    Hello,

    Do changes via a child theme to prevent losing them after the parent theme update.
    Describe your request in more detail, please.

    Regards

    Avatar: east_ikebukuro
    east_ikebukuro
    Participant
    February 22, 2021 at 13:02

    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?

    Avatar: Olga Barlow
    Olga Barlow
    Participant
    February 22, 2021 at 13:59

    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

    Avatar: east_ikebukuro
    east_ikebukuro
    Participant
    February 22, 2021 at 15:31

    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?sliderslider

    Avatar: Olga Barlow
    Olga Barlow
    Participant
    February 22, 2021 at 18:48

    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

    Avatar: east_ikebukuro
    east_ikebukuro
    Participant
    February 23, 2021 at 01:06

    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.

    Please contact administrator
    for this information.
    Avatar: east_ikebukuro
    east_ikebukuro
    Participant
    February 23, 2021 at 01:07

    let me reply again..
    I attached confusing info in the last reply.

    Please contact administrator
    for this information.
    Avatar: Robert Hall
    Robert Hall
    Participant
    February 23, 2021 at 09:25

    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/

    Avatar: east_ikebukuro
    east_ikebukuro
    Participant
    February 24, 2021 at 01:29

    I set 0px for margin padding border for “

    [smartslider3 slider=”2″]

    ” 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?

    Avatar: Robert Hall
    Robert Hall
    Participant
    February 24, 2021 at 08:42

    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.

    Avatar: east_ikebukuro
    east_ikebukuro
    Participant
    February 26, 2021 at 00:42

    it worked. thanks.

  • Viewing 12 results - 1 through 12 (of 12 total)

The issue related to '‘Where can I paste php code?’' has been successfully resolved, and the topic is now closed for further responses

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.