Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jose Luis SAYAGO

    (@iluminatus)

    Hi, you can do that with CSS. Just include a custom CSS file using the css_style parameter, download and tweak the default style, blocks classes are found from line 525:

    nlp-defaultStyle.css

    .nlposts-block-container .nlposts-block-item {
        float:left;
        display:block;
        width:45%;
        margin-left: auto;
        margin-right: auto;
        margin-right: 5px;
    }

    Take a look at the width which is 45% by default, you’ll have to change that the desired value, maybe to 30%, if you do so, then it’d look like:

    .nlposts-block-container .nlposts-block-item {
        float:left;
        display:block;
        width:30%;
        margin-left: auto;
        margin-right: auto;
        margin-right: 5px;
    }

    Replace the default style rule by this one, save the CSS file with a custom name nlp-jakub.css for example, put the file into your WordPress active theme folder /wp-content/themes/my-theme/nlp-jakub.css, finally in your shortcode or widget:

    // Shortcode
    [nlposts ....other options.... css_style=nlp-jakub]
    
    // Widget
    Put nlp-jakub into the CSS Stylesheet field

    I hope this helps.
    José SAYAGO

    Thread Starter Jakub Orlowski

    (@jakub-orlowski)

    Wow! Works fine! You are amazing. Thank you so much.

    I will tell everybody how use multisite that your plugin is “must have”.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Change widget display’ is closed to new replies.