Custom CSS priority

Tagged: 

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

These forums are closed to new replies / tickets. Please open a support ticket from our new Support page.

  • Author
    Posts
  • #6344
    Turo
    Participant

    Hi
    I have the listing templates add on, but for some reason the button “read more” and background are almost the same (see image)

    I changed the CSS but for some reason the plug-in CSS overrides the Custom CSS (I was using a Jetpack). I fixed it changing the plugin CSS directly, but this is not a good behaviour from a plugin and this is not a good solution due to updates.

    Do you think you should allow the Custom CSS a higher priority compared the plugin/extension CSS?

    Attachments:
    You must be logged in to view attached files.
    #6347
    Merv Barrett
    Keymaster

    This is the same issue i encounter using other plugins and the best way to tackle this is to prempt the class in your theme stylesheet with something from your theme.

    e.g. being an iThemes Builder fan they have a class like

    .builder-module .YOUR-plugin-class {
    }

    failing that use

    body .YOUR-plugin-class {
    }

    no need to edit the plugin, just supersede the class. I’m unsure about the priority of CSS, and wondered this myself but the above is what is best practice.

    #6380
    Turo
    Participant

    ok.. thanks for a fast answer. I’ll try that. I’m using a genesis framework, so I try to figure the class out.

    #6599
    Merv Barrett
    Keymaster

    body nearly always works as this is the beginning of the html document and is the very top most usable CSS selector.

These forums are closed to new replies / tickets. Please open a support ticket from our new Support page.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Listing Templates’ is closed to new topics and replies.