Override style-mobile.css with child theme

  • Author
    Posts
  • #35299
    Rhianon

    How can I do this? Using !important works, but that got me into a mess fast….
    I found someone else asking, but the answer was never posted:
    http://www.cryoutcreations.eu/forums/t/child-theme-mobile-styles

    I tried copying theme-styles.php and editing it to use get_stylesheet_directory_uri() (found in another post), but that isn’t working either.

    What can I do?

    #35391
    Zed
    Cryout Creations mastermind

    I presume you only need to override some of the rules in that file, not the entire file.
    You can do that by writing styling more specific than the one already present.

    If you absolutely must replace the whole file, its initial call can be unhooked and a child theme replacement can be hooked in place.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Override style-mobile.css with child theme’ is closed to new replies.