• Resolved Cristina

    (@cristinaa1)


    I’m using Site Origin Editor to arrange the page and have two text widgets either side on a row. One is to contain social media buttons (works fine) the other is to contain any form of basic slider with some text above it.

    The box styles has been made in custom css, and applying the css to the text widget has worked fine.

    .divcontentboxes{
        float:left;
        align: center;
        background-color: #e9f6fc;
        border-width: 15px;
        border-style: solid;
        border-color: white;
        padding: 25px;
        margin: 25px;
        float:left;

    and this is what I’ve tried so far in the text widget (HTML)

    </head>
    <body>
    <center>
    <div class = divcontentboxes>
    <h6>Gallery/slider to go beneath this</h6><br>
    
    <div class="headerslider">
    <?php echo do_shortcode('[sp_responsiveslider design="design-1" cat_id="51" width="200" first_slide="1" height="100" speed="6000" autoplay="true" autoplay_interval="6000"]'); ?>
    </div>
    </div>
    </body>
    </html>

    Everything has worked fine until now, and I have no idea what else to do to get a small slider beneath this text in the HTML?

    Thanks in advance

Viewing 1 replies (of 1 total)
  • Thread Starter Cristina

    (@cristinaa1)

    Solved by adding

    add_filter( 'widget_text', 'shortcode_unautop');
    add_filter( 'widget_text', 'do_shortcode');

    to bottom of the functions.php
    and then the shortcode in the text widget

Viewing 1 replies (of 1 total)
  • The topic ‘Want Slider to Appear In HTML Text’ is closed to new replies.