Forums

[Plugin: File Gallery] (3 posts)

  1. gunness
    Member
    Posted 4 months ago #

    Hello,

    every time when I Update the FILE GALLERY PlugIn, i have the same problem.
    In the folder: plugins -> file-gallery -> templates , there is always a new CSS file called
    "columns.css".

    In this file the with of the column is denoted. For Example:

    .gallery.columns_7 .gallery-item, #content .gallery.columns_7 .gallery-item
    { width: 14.3%;}

    This always is always overwriting my CSS styles (margin for my images).
    How can I disable this?

    Thank you for your help!

    Regards,

    gunness

  2. Aesqe
    Member
    Posted 4 months ago #

    @gunness: that file is part of the plugin and will always be there :)

    If you need to override its settings use !important declarations in your CSS rules.

    If you don't need it at all, you can use the following code to disable loading of "columns.css":

    function remove_file_gallery_columns_css()
    {
        wp_dequeue_style('file_gallery_columns');
    }
    add_action( 'wp_print_styles', 'remove_file_gallery_columns_css' );

    I'll probably add disabling of columns.css as an option to the plugin in near future.

  3. gunness
    Member
    Posted 4 months ago #

    Hello Aesqe,

    Thank you for you fast and in detail help!

    Regards,

    gunness

Reply

You must log in to post.

About this Topic