Support » Plugin: Simple FTP Directory Lister » Override css

  • Resolved halloy

    (@halloy)


    Hello, your plugin seems to work very fine even on a last version of WP. I wish to add CSS rules to display files in a dropdown list displaying when hover on the first item. I can override a lot of rules of your css but with a lot of “!important” and it’s not very good. So, I can change directly your css but what happens when updating ?
    thanks for your work !

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter halloy

    (@halloy)

    Hello, I see that your css is directly loaded in body, not in header. So it cannot be overrided by my own rules without adding !important.
    I think it should be beter to load it in the header but i don’t know how to do …
    Thanks

    Plugin Author jakeob

    (@jakeob)

    Hello Halloy,

    the plugin loads css in the body because it applies some conditions to it.
    As you stated you can use !important to override the styles.

    However for more complex changes I have updated the plugin to allow you to completely overtake the css files the plugin loads.

    To use your styles you need to create a folder called simple-ftp-directory-lister within your theme directory with a subfolder called css. From now on all the styles of the plugin will be loaded from this folder. Be aware that you should be using child theme in order to keep any theme changes after you update the theme.

    There are 5 different css files that controls styles. You need to copy these files from the plugin folder to the css folder you just created.

    Now change anything you want in these files, the plugin will be loading these and ignore its own css files.

    Example where you need to create the folder: /wp-content/themes/themeyouareusing/simple-ftp-directory-lister/css/

    Thread Starter halloy

    (@halloy)

    Thanks a lot for your reply and sorry for my delay to reply. Your plugin is very great ! thanks for your work !!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.