Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Media Queries Help

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #199715
    ts2114tb
    Participant

    Hello,
    my site: staging.librovn.com
    this is the media queries I put in the child theme style.css: codepen
    the media queries works fine on my localhost, but it doesn’t work on the live site.
    here is the screenshot for localhost site: https://www.flickr.com/photos/130760401@N07/17023339782/
    here is the screenshot for staging site:
    https://www.flickr.com/photos/130760401@N07/16837258760/in/photostream/
    Any help please.

    #199719
    ts2114tb
    Participant

    Hi Senff,

    Thanks for answer,

    Actually you can find the CSS style in the /responsive-mobile-child/style.css.

    When you open it, you can see near the top, below the meta info, something like:

    /* Reponsive */
    CSS Media Queries on codepen…

    I also make the screenshot public, please take a look. Thanks

    #199721
    ts2114tb
    Participant

    I delete the cache, reload the site, but the media queries still doesn’t apply.

    I’m using FirefoxDeveloperEdition as my browser, I also try to open the staging site in Firefox and Chrome, but it’s still the same.

    Could it be another problem?

    screenshot of the caching: https://www.flickr.com/photos/130760401@N07/17026242285/

    #199754
    ts2114tb
    Participant

    You’re right, there’s “trailingslashit” before “get_template_directory_uri()”. I remove it and the media queries work.

    screenshot: https://www.flickr.com/photos/130760401@N07/16849419469/

    Thanks a lot, Senff.

    Further question: I’m wonder why “trailingslashit” is used in function.php. Is it there to update the child theme to the new version of the parent theme?

    #199757
    ts2114tb
    Participant

    Hi tuileihai,
    I’m sorry you have a problem with your site, but it’s better if you create a new topic. That’s way you will have more chance to get help.
    Cheers

    #199762
    tuileihai
    Participant

    Sorry, I am new and I have made a mistake of posting my question here. Again, sorry.

    #199766
    ts2114tb
    Participant

    Please look at the screenshot below, you will see “trailingslashit”, the extra before get_template_directory_uri()

    screenshot: https://www.flickr.com/photos/130760401@N07/16849419469/

    So each time the parent theme get updated, I get the new features but also don’t lose the changes I made in the child theme. Is that correct?

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