-
AuthorPosts
-
August 2, 2018 at 11:45 pm #993060
Hi,
I’m having problems changing the font in main menu. I used this code for menu font size and it works:
.avia-menu-text {
font-size: 22px;
}But when I tried this for changing the font type, it didn’t work. I used this:
.main_menu {
font-family: “Flamenco”;
font-weight: bold;
}It just defaults to Times New Roman. If I remove that code, than the menu appears kinda weird – it displays in the font that’s selected as “Heading font” in theme settings, but every time you click on a menu item, it appears as Arial for a split second, and then switches to selected Google font. And you can literally see how the font changes.
August 3, 2018 at 10:21 am #993144Hey Cravat,
You should be able to set both of those values under Enfold->Advanced Styling, please have a look there.
Best regards,
RikardAugust 3, 2018 at 6:49 pm #993339Thanks, I tried that, but still it’s messed up – on menu links to WooCommerce pages the font is chosen Google Font, EXCEPT on the shop page, where the font is, the same as on links to ordinary pages, Arial-ish font.
August 3, 2018 at 7:01 pm #993345I tried creating a new, empty child theme, and again the same – in the menu, links to WooCommerce pages are in the chosen Google Font, but links to other pages, and the shop page, are in a web safe font (Arial Or Times New Roman, depending on the browser).
It’s like, for some reason, CSS doesn’tapply to all parts of the website.
- This reply was modified 6 years, 3 months ago by Cravat.
August 3, 2018 at 9:08 pm #993354Ha! Got it, the caching plugin was the culprit. Now it works fine.
August 3, 2018 at 9:22 pm #993356Which brings me to another question – are WooCommerce pages really styled completely separately? I just stumbled upon a post here concerning woocommerce-mod.css file. I’m trying to style the website, does that mean I have to do everything twice? For instance the look and feel of links, do I have to change it both in the woo css and in the theme css’
August 4, 2018 at 7:32 am #993432Hi,
No, you shouldn’t have to edit the CSS more than once, are you having problems with anything in particular?
Best regards,
RikardAugust 4, 2018 at 9:22 am #993467Hi,
yes. Right now I am trying to set the look and feel of the site, specifically the links. Let’s say I define a background color on link hover, using this:
a:hover {
background-color: #F8E8E9;
}and the problem is it doesn’t display properly in browsers, even though I clear the cache, or it displays fine in one but not in the others. And certainly it doesn’t display properly in WooCommerce product pages. And then somehow, in one of the changes it does.
And when I want to set the style of the menu items on hover, using the code I found here, it applies partially – the background changes, but the font color doesn’t.
.main_menu a:hover,
.main_menu .current-menu-item a { /* this is the hover/current state */
color: #fff;
background-color: blue;
}I can find answers to my questions in this forum fine, but the problem is it doesn’t really apply on my site – I thought it was the caching plugin, but it’s not. I have gone through great length to get great score on most of page speed tests, and I have a feeling that might be the isssue, something is blocking the css from being rendered properly, or instantly.
DISCLAIMER: I am a noob. And I have installed a separate browser, Vivaldi, using it out of the boy, just to make sure FF or Chrome are not the problem.
August 5, 2018 at 6:58 am #993611Hi,
Thanks for the feedback, could you post a link to a page where we can see the actual problem please? Try to be as specific as possible as to what is not working.
Please include admin login details in private as well if we need to check the backend.
As for caching plugins; there’s really no point in using them if you are making changes to your site, you kind of set yourself up for problems like these. https://bit.ly/2MjhMva
Best regards,
RikardAugust 6, 2018 at 12:57 pm #993910Yea, I thought so too. Also, besides the caching plugins, the problem was also the fact that I used both custom css file, Quick CSS and advanced styling, and I’m pretty sure that over time I entered values for certain objects in more than one of those places. So I created a third child theme and started all over and now everything is applied instantly.
Btw, can you tell me where do I find the css for widgets? Pages widget and text widget look totally different, even though I use a bulleted list in text widget, and the pages widget is also bulleted list.
Thanks a lot :)
August 7, 2018 at 5:59 am #994221Hi,
Thanks for the feedback. I’m not sure how your widgets look, could you link to where we can see the actual problem please? Also try to explain what is wrong and what you would like to change.
Best regards,
RikardAugust 7, 2018 at 12:49 pm #994391Notice how, in the footer, pages and Product categories widgets don’t look the same, even though basically they have the same type of content – unordered list? Also, Interesting links widget has smaller font.
So, I want bigger line spacing on Pages widget, and then to set all other widgets to look the same like that one (with regards to font size, line spacing etc.).
(Again, I’m a noob so please excuse my stupid questions . And the poor site design :)
August 8, 2018 at 8:55 am #994727Hi,
Thanks for the feedback. Please try this CSS as well:
.widget_product_categories li a { font-size: 20px !important; } .widget_product_categories li a { padding: 0 !important; background: none !important; }
Best regards,
RikardAugust 13, 2018 at 11:29 pm #996909Thanks, I’ll try that.
How can I know, for future reference, the names of classes for certain parts of the theme (I presume .widget_product_categories is a class)?
For instance, now I have defined a background for a:hover, but I do not want it to apply to dropdown menu where you select product sorting, cause it looks weird. It feels kinda silly having to come here every time and basically ask the same question, only for different part of the theme/site.
August 14, 2018 at 7:03 am #996969Hi,
All you need is to inspect the element in your browser and find the class or ID of the element in question. You right click on the element, then select Inspect in the browser. If you need to learn more CSS then I can recommend that you have a look at W3Schools.
Best regards,
Rikard -
AuthorPosts
- You must be logged in to reply to this topic.