- This topic is empty.
-
AuthorPosts
-
April 3, 2015 at 5:07 pm #199715
ts2114tb
ParticipantHello,
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/[email protected]/17023339782/
here is the screenshot for staging site:
https://www.flickr.com/photos/[email protected]/16837258760/in/photostream/
Any help please.April 3, 2015 at 6:47 pm #199719ts2114tb
ParticipantHi 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
April 3, 2015 at 8:40 pm #199721ts2114tb
ParticipantI 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/[email protected]/17026242285/
April 4, 2015 at 5:31 pm #199754ts2114tb
ParticipantYou’re right, there’s “trailingslashit” before “get_template_directory_uri()”. I remove it and the media queries work.
screenshot: https://www.flickr.com/photos/[email protected]/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?
April 4, 2015 at 9:13 pm #199757ts2114tb
ParticipantHi 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.
CheersApril 5, 2015 at 6:30 am #199762tuileihai
ParticipantSorry, I am new and I have made a mistake of posting my question here. Again, sorry.
April 5, 2015 at 7:24 am #199766ts2114tb
ParticipantPlease look at the screenshot below, you will see “trailingslashit”, the extra before get_template_directory_uri()
screenshot: https://www.flickr.com/photos/[email protected]/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?
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.