• Resolved eaglejohn

    (@danielbenjamins)


    I’m experiencing some issues regarding the styling of the popup. This is what’s happening:

    1. I copied the contents of /plugins/wp-post-modal/public/css/wp-post-modal-public.css to my own stylesheet.
    2. I unchecked “Activate basic styling” because I have to style the modal myself.
    3. wp-post-modal-public.css is still getting loaded from the plugin directory (shouldn’t happen since I unchecked that option).
    4. Now the styling is getting loaded twice (from plugin and my own stylesheet), yet the popup has no styling anymore…
    5. Clicking outside the popup doesn’t close the popup anymore after doing step 2.

    Any suggestions?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter eaglejohn

    (@danielbenjamins)

    Don’t know what went wrong with the topic title. Should have been “CSS keeps getting loaded twice”.

    Thread Starter eaglejohn

    (@danielbenjamins)

    For now I commented out rule 77 of class-wp-post-modal-public.php to deactivate the loading of CSS. So far I didn’t manage to dequeue the file succesfully. Any suggestions?

    Plugin Author allurewebsolutions

    (@allurewebsolutions)

    @danielbenjamins I will look into this to make sure that plugin option is working properly.

    Alternatively, you can always just write CSS that overrides the basic styling.

    Plugin Author allurewebsolutions

    (@allurewebsolutions)

    I just tested and you are right, it does still include the CSS file. But you do need some of the CSS to make the popups work at the basic level.

    If you have that setting turned on, it adds a “styled” class to your modal wrapper. If it’s turned off, it removes the class.

    This behavior shouldn’t interfere with your custom styling.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘CSS ke’ is closed to new replies.