- This topic has 15 replies, 3 voices, and was last updated 3 years, 9 months ago by
Leo.
-
AuthorPosts
-
June 16, 2017 at 8:10 am #334488
Afroze
Hi,
I have the following problems with editing website via the “customize” interface.
1) I try to increase the width of items in my primary navigation. As I slide the slider, I can see the width changing, but as soon as I refresh the page, the width of items goes back to default (even though the pixel value is shown as the new one, in customizer). In contrast to this, secondary navigation width change works fine.
2) I cannot figure out how to change the font of the text in my posts? I tried changing through: Typography -> Body, but it has no effect. In contrast, I can immediately see the effect of changing Font size.
I tried to inspect the text element in order to figure out what was going on, I could see that the new font I had applied was crossed out, while “Open sans” was over-writing my changes.GeneratePress 1.3.48GP Premium 1.3June 16, 2017 at 8:50 am #334515Leo
StaffCustomer SupportHi there,
Sounds like a caching issue. Are you using any caching plugin or server caching?
Can you provide a link to your site? Thanks!
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 16, 2017 at 8:58 am #334521Afroze
I don’t believe I am using any cashing right now (unless it is automatically provided some how..)
The site link is: afroze.me
June 16, 2017 at 9:14 am #334539Leo
StaffCustomer SupportLooks like the stylesheet is getting loaded twice.
Are you using a child theme?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 16, 2017 at 9:20 am #334548Afroze
Yes I am using a child theme, but it has only very simple css and not affecting the components in question. If you’d like I can send you a copy of it.
Also, I’m wondering if it is a caching issue, if it should effect all changes in customizer, or only a select few things (like in my case).
June 16, 2017 at 9:36 am #334563Tom
Lead DeveloperLead DeveloperRemove this line from your child theme style.css file:
@import url("../generatepress/style.css");
More info here: https://docs.generatepress.com/article/child-theme-issues/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJune 16, 2017 at 9:52 am #334571Afroze
Ah thanks a lot! I’m pretty new to the world of wordpress, so I guess I followed a dated tutorial on making a child theme.
Another issue, which I assume is related to this one. I try to change the margin of featured image in the blog page. However my changes are apparently overwritten by the “blog” plugin of GP-premium.
I add the following css:
.post-image-above-header .post-image { margin-bottom: 0; }
However, I see by inspecting the element that the contents of the following file is overwriting my changes:
./wp-content/plugins/gp-premium/blog/functions/css/style-min.css
June 16, 2017 at 10:10 am #334576Leo
StaffCustomer SupportTry this:
.inside-article .post-image { margin-bottom: 0; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 16, 2017 at 10:26 am #334583Afroze
Hi,
It has the same results. The following style element from the blog plugin is overwriting it:
.post-image-above-header .post-image { margin-top: 0; margin-bottom: 2em; }
June 16, 2017 at 11:21 am #334591Leo
StaffCustomer SupportCan you leave the code in so I can have a look? Thanks!
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 17, 2017 at 3:05 am #334887Afroze
Hmm I’m not completely sure what code do you mean. Perhaps I didn’t explain the issue properly..
In this screenshot, you can see in the bottom inspect section that I am trying to update the margin-bottom to 0 (in the child theme’s style.css file), but my changes are overwritten by the style-min.css file (which apparently comes from the GP-premium blog plugin).
When I cross out margin-bottom: 2em (directly from inspect) then I get the desired results. However, I am not sure why the plugin is overwriting my changes, and how I can avoid that.
June 17, 2017 at 9:05 am #334976Leo
StaffCustomer SupportAdd this code in again: https://generatepress.com/forums/topic/problems-customize-editing/#post-334576
Sometimes it just means we need to be more specific in our CSS.
I’ll be able to tell once you add it in.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 17, 2017 at 11:13 am #335034Afroze
Ah ok, my bad. It’s already in π
June 17, 2017 at 11:21 am #335036Leo
StaffCustomer SupportHmm try this:
.post-image-aligned-right .post-image { margin-bottom: 0 !important; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 17, 2017 at 11:40 am #335041Afroze
Ah that worked. Thanks! π
-
AuthorPosts
- You must be logged in to reply to this topic.