WordPress.org

Ready to get started?Download WordPress

Forums

Dynamic "To Top" Plugin
[resolved] Margin bootom (7 posts)

  1. Eric 05
    Member
    Posted 2 years ago #

    Hello Matt,

    thank you for this nice plugin.

    I want to increase the margin bottom of the plugin, I want the icon to be less down in the page (sorry for my english). What to change in wich css file?

    Thank you

    http://wordpress.org/extend/plugins/dynamic-to-top/

  2. Matt
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Eric 05,

    You could try hooking into the filter mv_dynamic_to_top_css this allows you to modify the minified css before it's served.

    function my_dynamic_to_top_filter( $css ){
        $css .= '{ #dynamic-to-top{ bottom: 200px }; }';
        return $css;
    }
    
    add_filter('mv_dynamic_to_top_css','my_dynamic_to_top_filter');

    Kind Regards!

  3. kyssme
    Member
    Posted 2 years ago #

    I see, but which css stylesheet should I put in? dynamic-to-top-admin.css or dynamic-to-top-jquery-ui.css?

  4. kjodle
    Member
    Posted 2 years ago #

    It should go into your child theme's functions file.

  5. kyssme
    Member
    Posted 2 years ago #

    I see, but that doesn't work at all.

  6. Matt
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Guys,

    Little typo in my example, apologies. It would be:

    function my_dynamic_to_top_filter( $css ){
        $css .= '#dynamic-to-top{ bottom: 200px; }';
        return $css;
    }
    
    add_filter('mv_dynamic_to_top_css','my_dynamic_to_top_filter');

    As Kjodie said, It should go into your theme's functions file.

    Kind Regards!

  7. letmotta
    Member
    Posted 2 years ago #

    Hello, I want my bottom-right configured button with 32px margin-bottom.
    HOW can I edit this info?

    Take a look here - http://www.cutedrop.com.br/2012/06/principe-da-persia-e-a-rotoscopia/ - to understand the reason I want this customized margin.

    Im not a developer, so if you can explain with details Id be glad.
    Thanks a lot

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic