WordPress.org

Forums

Advanced Sidebar Menu
[resolved] Custom css doesn't work like in 3.2.3 (10 posts)

  1. cloudfe
    Member
    Posted 3 years ago #

    Hello,
    I use the Headway Theme, and before updating to 3.2.5 today I always used Headway live css editor to edit the ASM plugin, and it worked. But since I updated today code like this

    .advanced-sidebar-menu.widget ul li,
    .advanced-sidebar-menu li {
       padding: 3px 0;
       list-style-type: disc;
       list-style: disc;
    }

    doesn't work anymore (it does if I put it in the wordpress editor).
    I also tried with
    !important,
    but nothing.
    I would like to keep using the live css method because it allows me to keep the custom css when I upgrade the plugin.
    Do you have any idea what could have happened?

    Thank you

    http://wordpress.org/extend/plugins/advanced-sidebar-menu/

  2. Mat Lipe
    Member
    Plugin Author

    Posted 3 years ago #

    Please post a link to a page where you are using the menu.

    Thanks.

  3. cloudfe
    Member
    Posted 3 years ago #

  4. Mat Lipe
    Member
    Plugin Author

    Posted 3 years ago #

    The styling appears to be working as normal.
    The new version of the plugin handles the styling exactly the same as the previous version.

    I am not familiar with the Headway Theme. This may be related to a recent update the theme or another plugin that may be conflicting with the live css editor in some way.

    Another option for you to adjust the css safe from updates is to create a folder in your theme named "advanced-sidebar-menu". It looks like your theme may be in this location /wp-content/themes/hw-child-theme/.
    Once you have created this folder, you may copy the sidebar-menu.css file from the plugin's views folder. This file can then be edited at will and will not be overwritten when you update the plugin.

    Hopefully this helps.

    Cheers.

  5. cloudfe
    Member
    Posted 3 years ago #

    I see, I'll try with a child them.
    One question: is there any way to use the functions.php file of the child theme to edit the php of the plugin (and so keeping the custom code when I upgrade the plugin)?

  6. Mat Lipe
    Member
    Plugin Author

    Posted 3 years ago #

    Yes. `
    The plugin supports overwriting any of files in the views folder by simply copying them to same folder mentioned above in your theme.

    Otherwise, you may also extend the plugins classes and then use methods you create.

    To overwrite the entire behavior of one or both the widgets you may extend the widget classes, use
    remove_action( 'widgets_init', 'advanced_sidebar_menu_widgets' );
    And then add register your own classes for the widgets.

    If there is something specific you are trying to do, please create a new thread with the details and I will see if I can assist you.

  7. cloudfe
    Member
    Posted 3 years ago #

    Ok, I tried with a child theme, and it worked - the only thing is I had to use the "!important" code. But now updating should be safe.

    Thank you :)

  8. ibishwash
    Member
    Posted 2 years ago #

    Hi couldfe,

    Please mail me at [ redacted, support is offered via the forum and not email ]. It's urgent.

  9. Mat Lipe
    Member
    Plugin Author

    Posted 2 years ago #

    Good Morning couldfe,

    It looks like the forum strips out email requests. Please create a thread to ask you question, or contact me through the contact form on the plugin's website.

    Cheers

  10. Mat Lipe
    Member
    Plugin Author

    Posted 2 years ago #

    Marking as Resolved

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Sidebar Menu
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic