Support » Plugin: Crelly Slider » Custom CSS prevents centering

  • I have given a class to each element in a slide. When defining those styles in a custom stylesheet it throws off the centering. i.e. all the elements have Center Horizontally selected but they don’t center. When I remove the CSS from the customer stylesheet it works OK.
    I’ve also tried adding those styles to the custom CSS in the slide itself and the same thing happens.
    It appears the only way to style it is to do so for each element.
    I’m trying to avoid that because if styles have to be changed I don’t want to have to manually edit 6 different slides. This should be possible using a custom stylesheet.
    Theme being used is Modules by Artisan.

Viewing 1 replies (of 1 total)
  • Plugin Author Fabio Rinaldi

    (@fabiorino)

    A solution to this problem is enqueuing the CSS file in the backend.

    To do that, you need to add a couple of lines of code in functions.php

    function load_custom_wp_admin_style() {
            wp_register_style( 'custom_wp_admin_css', get_template_directory_uri() . '/style.css', false, '1.0.0' );
            wp_enqueue_style( 'custom_wp_admin_css' );
    }
    add_action( 'admin_enqueue_scripts', 'load_custom_wp_admin_style' );

    Then clear the cache of you browser. Now the elements in the backend should look the same as in the frontend.

    If you have any problem or you need additional help, please don’t hesitate to contact me!

Viewing 1 replies (of 1 total)
  • The topic ‘Custom CSS prevents centering’ is closed to new replies.