Support » Theme: Bouquet » post slider

  • Resolved aussiepursuit

    (@aussiepursuit)


    Hi,

    Is it possible to put a post slider between the menu and posts on front page? I installed the Weaver Slider plug in but am not sure how to use it. Please help.

    Thanks.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator Kathryn

    (@zoonini)

    Automattic Happiness Engineer

    I’m not familiar with that plugin – I’d suggest consulting the plugin documentation or posting in the plugin’s forum to find out how to implement it in a theme.

    Basically the plugin generates a shortcode that can be placed anywhere, especially in a text widget, to display the post slider.

    I want to put the slider below the menu above the posts on my blog theme which is the wonderful “Bouquet”, but I am not sure where to put the shortcode and what modifications to make in the codes (not sure if it’s html or css or php, I have no idea) to get that space between the menu and posts.

    Thanks.

    Or do you have other suggestions for putting a post slider where I want it? Different plugins may be?

    Moderator Kathryn

    (@zoonini)

    Automattic Happiness Engineer

    You could find out from the plugin docs or developer whether in addition to a shortcode the plugin offers a PHP/HTML snippet. If it does, then you could create a child theme and place the snippet where you want the slider to appear.

    Creating a child theme means your tweaks won’t be overwritten when updating the theme. Here are some guides in case you haven’t made one before:

    http://codex.wordpress.org/Child_Themes
    http://op111.net/53/
    http://vimeo.com/39023468

    If that plugin doesn’t offer a PHP/HTML snippet then you could perhaps look for a plugin that does. I don’t have any specific ones to recommend.

    Yes they can do a php shortcode at least, but what I want to ask you is where exactly I can put the code within the Bouquet theme when I want to put them between the menu and posts. A hint of what code to look for would be helpful. Thanks.

    Moderator Kathryn

    (@zoonini)

    Automattic Happiness Engineer

    You could try copying the index.php file into your child theme folder and putting the PHP shortcode between these two lines:

    <div id="content" role="main">
    
    <?php if ( have_posts() ) : ?>

    That should put it within the main column, just above your posts.

    Let me know how it goes!

    Moderator Kathryn

    (@zoonini)

    Automattic Happiness Engineer

    Be sure to put the PHP shortcode between PHP tags, so:

    <?php THE-SHORTCODE-GOES-HERE ?>

    Hi Kathryn,

    Thanks for that. And sorry for delayed response, as I needed to find time to do it. Finally have during this Easter Break. I use the Smooth Slider plugin instead the previous one I mentioned. And here it is:

    http://www.aussiepursuit.biointent.com

    I would have still do some optimization, but this is as far as I can get from the free version. Not too bad 🙂

    Please let me know your comments and suggestions 🙂

    Thanks.

    Btw how do I add some space after the slider before the first blog post? Thanks in advance.

    Moderator Kathryn

    (@zoonini)

    Automattic Happiness Engineer

    Looks good!

    To add some space below the slider, add something like this to your custom CSS editor, adjusting the value as you like:

    .smooth_slider {
      margin-bottom: 30px;
    }

    If you created a child theme when you added the slider you can also just add the CSS to that.

    If you edited any theme files directly in order to add your slider, your tweaks will be overwritten and lost every time you update the theme. Here are some guides to making a child theme in case you haven’t made one before:

    http://codex.wordpress.org/Child_Themes
    https://www.smashingmagazine.com/2016/01/create-customize-wordpress-child-theme/
    http://vimeo.com/39023468

    Keeping your theme up-to-date is important so you’ll get all the latest bug and security fixes, as well as keep the theme compatible with the latest version of WordPress core.

    aussiepursuit

    (@aussiepursuit)

    Hi,

    thanks for the tips. However, if you have a theme of magazine style (slider and categories in front page) with pink color combinations like the bouquet theme, please let me know. I want to move to a magazine theme, but haven’t found anything I like yet, as I like the color combination of bouquet a lot. Thanks.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘post slider’ is closed to new replies.