• Resolved nathancrjackson

    (@nathancrjackson)


    Hi mate,

    Love your work with this plug-in. If it’s cool can you please change vskb-shortcode.php so that:

    if ($vskb_atts['columns'] == '1') {
    		$columns = 'vskb-one';
    	} elseif ($vskb_atts['columns'] == '2') {
    		$columns = 'vskb-two';
    	} elseif ($vskb_atts['columns'] == '3') {
    		$columns = 'vskb-three';
    	} else {
    		$columns = 'vskb-four';
    	}

    Becomes:

    if ($vskb_atts['columns'] == '0') {
    		$columns = 'vskb-custom';
    	} elseif ($vskb_atts['columns'] == '1') {
    		$columns = 'vskb-one';
    	} elseif ($vskb_atts['columns'] == '2') {
    		$columns = 'vskb-two';
    	} elseif ($vskb_atts['columns'] == '3') {
    		$columns = 'vskb-three';
    	} else {
    		$columns = 'vskb-four';
    	}

    This is a change I have made so I can better manage the columns myself with CSS. If you could make this change it would allow others to do so and save me having to make the change again if you update the plug-in 🙂

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Guido

    (@guido07111975)

    Hi Nathan,

    Would you like to tell me what you’re doing with this custom class? When targeting a certain knowledebase you can also use the page-ID as prefix. So IMO you don’t need this extra class?

    Or do you want to fully disable the styling of the li element with class vskb-cat-list, when using this custom class? So you can use your own styling for this element?

    Guido

    Plugin Author Guido

    (@guido07111975)

    Hi again Nathan / @nathancrjackson,

    I’m thinking about re-adding the class (shortcode) attribute again, that makes it possible to add your own custom class to every knowledge base. This was part of plugin before but removed in favour of the columns attribute. But in some cases a custom CSS class is useful, as you’ve pointed out.

    Guido

    Thread Starter nathancrjackson

    (@nathancrjackson)

    Hi mate,

    I’m pretty much using it just so I can make the columns responsive. You can see your good work in action here [ redundant link removed, next time use the link field please ]

    • This reply was modified 3 years, 10 months ago by Jan Dembowski.
    Plugin Author Guido

    (@guido07111975)

    Hi Nathan,

    Have updated plugin the way you requested. Let me know how it works.

    Guido

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

The topic ‘Columns = “0” for class = “vskb-custom”’ is closed to new replies.