Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Tom

    (@edge22)

    Hi there,

    It should be as easy as adding this CSS:

    .wp-show-posts-inner {
        background: #efefef;
    }

    Let me know ??

    Thread Starter johnzoro

    (@johnzoro)

    https://pubshed.co.uk/

    Sort of worked, but i would like the body background to be white or grey too instead of the wood effect that is the body background on the rest of the site.

    Plugin Author Tom

    (@edge22)

    I’m not seeing the plugin on that page?

    Thread Starter johnzoro

    (@johnzoro)

    hi there, yeah i removed it.

    it’s back on now

    Plugin Author Tom

    (@edge22)

    Ah, well you’ll have to add a container around the posts:

    <div style="background:#FFF;padding: 40px;">
        Shortcode in here
    </div>
    Thread Starter johnzoro

    (@johnzoro)

    add_action( 'generate_after_header','generate_add_homepage_slider' );
    function generate_add_homepage_slider()
    {
        if ( ! is_front_page() )
            return;
    
        echo do_shortcode( '[smartslider3 slider=3]' );
        echo do_shortcode( '[wp_show_posts id="656"]' );
        echo do_shortcode( '[sc name="Opt In Form Frontpage"]' );
    
    }

    this is my php

    how would i go about adding the div?

    Plugin Author Tom

    (@edge22)

    add_action( 'generate_after_header','generate_add_homepage_slider' );
    function generate_add_homepage_slider()
    {
        if ( ! is_front_page() )
            return;
    
        echo do_shortcode( '[smartslider3 slider=3]' );
        echo '<div style="background:#FFF;padding:40px;">';
            echo do_shortcode( '[wp_show_posts id="656"]' );
        echo '</div>';
        echo do_shortcode( '[sc name="Opt In Form Frontpage"]' );
    
    }

    That should do it ??

    Thread Starter johnzoro

    (@johnzoro)

    i should’ve tried that myself

    but i didn’t because i’m lazy

    thanks tom you’re the best

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Background Colour’ is closed to new replies.