Tagged: x
-
AuthorPosts
-
August 29, 2016 at 11:57 pm #1152805
Jacob DParticipantSo I’ve followed a few different topics here on the forums to try and replace one of the standard social icon slots with an alternate that is needed. Since I’m not planning on using the RSS icon, I was using that slot as my placeholder and I’ve tried placing the following code to try and get Yelp to be an option.
I placed this in the customizer with no change, so then placed it in the style.css of my child theme. In my CSS editor it shows it working just fine, but in a web browser it remains as RSS, despite clearing my cache, trying different browsers, etc.
.x-icon-rss-square:before{content:"\f1e9"}I added this snipet to the customizer’s script area which worked as expected, so now on hover, Yelp shows up:
(function($){ $('.rss').attr('title','Yelp'); })(jQuery)The site I’, (STILL) working on is at http://cerulean.pmcgdev.com/ so, any suggestions as to why this isn’t working or any suggestions?
August 30, 2016 at 2:03 am #1152888
ChristopherModeratorHi there,
Please close bracket for media query rule at the right place.
The correct format :@media (max-width:979px){ /* Style goes here */ }What you already have :
@media (max-width:979px){ a.x-brand.img { background-image: url("http://cerulean.pmcgdev.com/wp-content/uploads/Cerulean-Mobile-Logo.png") !important; width: 67%; display: inline-block; background-size: contain; height: 50px; background-repeat: no-repeat; } .x-brand img { display: none; } .x-navbar .desktop .x-nav li>a>span:after { content: ""; } .x-column.x-1-4 { width: 24.6%; margin-right: .5%; } .x-icon-rss-square:before{content:"\f1e9"}Thanks.
August 30, 2016 at 12:35 pm #1153734
Jacob DParticipantThank you for the reply – I removed the that extra bracket for the media query rule, but nothing changed. It now looks like:
@media (max-width:979px) { a.x-brand.img background-image: url("http://cerulean.pmcgdev.com/wp-content/uploads/Cerulean-Mobile-Logo.png") !important; width: 67%; display: inline-block; background-size: contain; height: 50px; background-repeat: no-repeat; }Was this supposed to help rectify the social icon or …?
August 30, 2016 at 1:07 pm #1153766
RupokMemberHi there,
Your code seems right but I can’t see this on your site. Did you remove this? Would you mind providing your login credentials?
Thanks!
August 30, 2016 at 2:14 pm #1153843
Jacob DParticipantSince I wasn’t seeing any changes, I moved it to the child theme’s style.css and removed it from the customizer: http://cerulean.pmcgdev.com/wp-content/themes/x-child/style.css I can of course put it back, but I was having better luck with other changes in the child theme’s style.
I’ll provide a login in a private post.
August 30, 2016 at 2:16 pm #1153844
Jacob DParticipantThis reply has been marked as private.August 30, 2016 at 4:04 pm #1154012
JadeModeratorHi Jacob,
Thanks for the details.
There are some CSS syntax errors in your style.css file and I went ahead and fixed them.
You should be able to see the Yelp icon now.
Cheers!
August 30, 2016 at 4:19 pm #1154026
Jacob DParticipantThank you so much, I really do appreciate it!
August 30, 2016 at 4:22 pm #1154034
NicoModeratorHappy to hear that.
Feel free to ask us again.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1152805 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
