Home › Forums › Weaver Xtreme Theme › Menu Bar BG CSS+
- This topic has 9 replies, 2 voices, and was last updated 3 years ago by
LorSmi.
-
AuthorPosts
-
May 28, 2020 at 19:27 UTC - Views: 30 #64588
LorSmi
ParticipantI have been trying to put in CSS in this section however when I click on SAVE SETTINGS, it doesn’t! I can save other items on that area (Main Options, Menus) but not that. I have other sites that I have used the same CSS for, and I just change the colors so I know that the CSS isn’t the problem.
What could be causing this?
Here is my CSS;
.mygradient {
background-image: -webkit-gradient(linear, left top, left bottom, from(#655a48), to(#c4b890));
background-image: -webkit-linear-gradient(top, #655a48, #c4b890);
background-image: -moz-linear-gradient(top, #655a48, #c4b890);
background-image: -o-linear-gradient(top, #b655a48 #c4b890);
background-image: -ms-linear-gradient(top, #655a48, #c4b890);
background-image: linear-gradient(to bottom, #655a48, #c4b890);
filter:prodig:DXImageTransform.Microsoft.gradient(startColorstr=’#655a48′,endColorstr=’#c4b890′);
}May 28, 2020 at 21:32 UTC - Views: 31 #64589scrambler
ModeratorYour rule is made to style a class (.mygradient), so it should go into the Theme Global CSS Rule box, NOT the menu bar CSS+ box.
If you wish to apply the gradient using the CSS+ box, then you should use the primary Menu bar BG CSS+ box and only put the part of the rule with the Curly bracket like below, and without the class
{
background-image: -webkit-gradient(linear, left top, left bottom, from(#655a48), to(#c4b890));
background-image: -webkit-linear-gradient(top, #655a48, #c4b890);
background-image: -moz-linear-gradient(top, #655a48, #c4b890);
background-image: -o-linear-gradient(top, #b655a48 #c4b890);
background-image: -ms-linear-gradient(top, #655a48, #c4b890);
background-image: linear-gradient(to bottom, #655a48, #c4b890);
filter:prodig:DXImageTransform.Microsoft.gradient(startColorstr=’#655a48′,endColorstr=’#c4b890′);
}In that case, you do not need to apply the mygradient class to the menu bar.
May 28, 2020 at 21:55 UTC - Views: 24 #64590May 28, 2020 at 22:20 UTC - Views: 22 #64591scrambler
ModeratorWhat do you mean by wont save. Once you click save does the CSS disappear, or it stays but does not work?
If the CSS actually disappear when you save the options, then you may have a configuration issue.
Check all items in the article below
https://guide.weavertheme.com/settings-wont-save-from-customizer/
Also make sure you do not have any plugin that does CSS or JS optimization. These will usually break the theme
May 29, 2020 at 00:35 UTC - Views: 22 #64592LorSmi
ParticipantThe CSS actually disappears.
I have 5 websites that I just recently migrated from Weaver II to Xtreme. (and I have Plus on all of them) This CSS worked on all of them except this one. The only difference is that the other 4 all had a background image, but this one only has a gradient background. I think the answer is somewhere in there but I don’t know where to look.
May 29, 2020 at 00:41 UTC - Views: 17 #64593scrambler
Moderatortest if any rule placed there disappear like
{color:red;}
if it does, try putting that rule in other CSS+ boxes and see if they disappear too.
If it does, see if when you change options and save, the changes are lost.
The content of the box should not disappear when saving regardless of what it is for…
May 29, 2020 at 13:56 UTC - Views: 19 #64594LorSmi
ParticipantOkay, I tried it, and it stayed there ( {color:red;} ). I then tried mine again and after I hit save selections, yours (color red) was the only thing in the box. I guess something is wrong with my CSS but I don’t understand that since it worked for my previous 4 sites, with the only difference being the colors in the CSS.
Update: {color:red;} is still in there and saved but when I visit site, the menu is black!
I will try to attach a screenshot. Okay, how do you insert an image that resides on your desktop?
May 29, 2020 at 14:05 UTC - Views: 11 #64595LorSmi
ParticipantOkay, this is the only way I could figure out how to share the screenshot
https://www.apsforestsolutions.com/home-2/test-page-for-image-viewing/
May 29, 2020 at 17:03 UTC - Views: 10 #64599scrambler
ModeratorThat is weird, all I can think of is that when you copy paste, you are carrying some invisible character that screw things up.
Try this
Right Click inside the CSS+ Box and click Select All, then backspace to delete ALL content of the box (even if invisible)
Then copy the CSS below and paste it in your CSS+ box and save
{background-image: -webkit-gradient(linear, left top, left bottom, from(#655a48), to(#c4b890)); background-image: -webkit-linear-gradient(top, #655a48, #c4b890); background-image: -moz-linear-gradient(top, #655a48, #c4b890); background-image: -o-linear-gradient(top, #b655a48 #c4b890); background-image: -ms-linear-gradient(top, #655a48, #c4b890); background-image: linear-gradient(to bottom, #655a48, #c4b890); filter:prodig:DXImageTransform.Microsoft.gradient(startColorstr='#655a48',endColorstr='#c4b890');}
That works for me
May 29, 2020 at 17:28 UTC - Views: 5 #64601LorSmi
ParticipantThat worked! Thanks! But, select all on right was grayed out. I had backspaced until your command was gone. Maybe that was why.
-
AuthorPosts
- You must be logged in to reply to this topic.