Support » Plugin: Genesis Widget Column Classes » Add fifths

  • Resolved marcfuller

    (@marcfuller)


    Is there a way to add Fifths to the plugin? If you could you share some info on how?

    I have added Fifths into the theme css.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @marcfuller,

    First of all, thank you for your review!

    If your theme has the classes you can use a filter to add your own classes to the list: genesis_widget_column_classes
    Please see the description of this plugin for more info!

    Let me know if you need help!

    Regards, Jory

    I appreciate your reply and love the plugin, but I am not informed as to the construct and placement of a “filter”. Can you share an example of such a filter or point me to more information?

    Thank you in advance.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @marcfuller,

    No problem, you can do this on multiple locations but I think your theme’s functions.php file is best for this since the available column classes are based on your theme:

    add_filter( 'genesis_widget_column_classes', 'my_theme_custom_widget_column_classes' );
    function my_theme_custom_widget_column_classes( $classes ) {
    	$classes[] = 'one-fifth'; // Add all your custom classes like this.
    	return $classes;
    }

    More info on WordPress filters and actions: https://codex.wordpress.org/Plugin_API

    Thanks! Jory

    • This reply was modified 10 months, 2 weeks ago by  Jory Hogeveen.

    Thank you Jory! Very much!

    Plugin Author Jory Hogeveen

    (@keraweb)

    No problem!

    Worked perfect! Thank you again!

    Fully resolved, and a great plugin!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add fifths’ is closed to new replies.