• Hello,

    I’m creating a wordpress theme for my football club, and I want to have full control of everything and override all CSS associated with SportsPress. Is there an easy way to do this?

    I want all styling to be done in my theme, and nothing on the plugins side. Normally this is quite simple, but SportsPress seems to override everything…

    Thanks 🙂
    [edit] There isn’t really any CSS being loaded, but there are some annoying pieces of ‘inline’ css which override what I do in theme stylesheet

    https://wordpress.org/plugins/sportspress/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Roch

    (@rochesterj)

    Hi!

    You can overwrite any CSS you want with your own, as long as you use the right CSS selectors.

    Probably the inline styling is done by some JS code or a jQuery plugin

    Kind Regards,
    -Roch

    Thread Starter person4659

    (@person4659)

    Hi, thanks for the reply.

    There is actually some inline css which is part of some php code, which adds !important at the end too, so It can’t be overwritten without modifying the plugin code. Normally I would just do that to make it behave, but I want to keep everything theme driven.

    For the most part, my own CSS does seem to be working, but there are a few where this inline conflict comes in. Such as, the highlighted team in a league table. It defaults the background to white, and text to bold. If I try to define a background color, it gets overwritten by the inline !important.

    I have a work around, which basically used a short line of Jquery to change the element className, but it’s a little hackey just to change some CSS…

    Plugin Author Brian

    (@brianmiyaji)

    @person4659 Have you turned off the “Enable” checkbox in SportsPress > Settings > General > Styles and Scripts > Frontend Styles?

    Thread Starter person4659

    (@person4659)

    Ooooh….well that’s embarrassing!

    My brain told me that the enable button was only for the custom bit :/

    Thanks, seems to have solved the issue 🙂

    Thread Starter person4659

    (@person4659)

    Whilst I have your attention, league tables. Once I go over 10 clubs in a league, I get a page 1/2 navigation come up. How do I disable this so it just shows as many clubs as I like.

    Also, is there a more efficient way to insert a league table (I have 2) in code than echoing the shortcode?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Override ALL CSS’ is closed to new replies.