Tagged: yigit
-
AuthorPosts
-
November 20, 2015 at 7:59 pm #539896
Hi Guys,
I have accordians that are normally in dark red and you have provided me with a code snippet [quick css] to set it up correctly.
I want to be able to over-ride these rules on selected pages and make the accordians either pink or green [my theme default colour]. Can you tell me how to do this, please?
See https://lavitrineduvin.com/en/2015/11/20/clairette-du-languedoc/
for the page I want to change the top right accordion to green.
The code snippet you gave me for the normal accordians is:
p.toggler.activeTitle * {
color: white;
}
p.toggler.activeTitle {
background-color: #b02b2c;
}p.toggler strong {
color: #b02b2c;
}p.toggler.activeTitle:hover strong {
color: #b02b2c;
}Thanks!
B.
November 20, 2015 at 10:00 pm #539949Hey belenenses!
Drag a codeblock element to your pages and add the code inside a style tag like so.
<style type = "text/css"> insert your CSS code here and change it's color </style>
Regards,
ElliottNovember 21, 2015 at 2:12 pm #540159Hi Elliott,
Thanks for the info. I have done as you said but without the desired change happening.
See https://lavitrineduvin.com/en/2015/11/20/clairette-du-languedoc/
I also tried putting the code block into the accordion block itself, but still no change. What else is required?Site codes below.
Thanks!
B.
November 24, 2015 at 1:45 pm #541591Hi Guys
Just a little nudge re this issue.
Thanks!
B
November 24, 2015 at 2:24 pm #541624Hey!
Please turn on custom CSS field for ALB elements – http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and edit your element to give it a custom CSS class and then change your code to following one
.your-custom-class p.toggler.activeTitle * { color: white; } .your-custom-class p.toggler.activeTitle { background-color: #b02b2c; } .your-custom-class p.toggler strong { color: #b02b2c; } .your-custom-class p.toggler.activeTitle:hover strong { color: #b02b2c; }
You can give each element a different class and adjust the code to apply the changes on certain elements
Regards,
YigitNovember 24, 2015 at 2:37 pm #541636Hi
Thanks, but where do I find my functions.php file ?
Cheers!
B.
November 24, 2015 at 2:40 pm #541640Hi!
Please go to Appearance > Editor and find Functions.php file on the right side
Cheers!
YigitNovember 24, 2015 at 2:50 pm #541656Hi
Sorry, but I haven’t got Appearance > Editor?!?
…or have I?
Cheers!
B
November 24, 2015 at 2:53 pm #541662Hey!
Well, you should as following – http://i.imgur.com/oPSXEkM.png but you do not. Please try de-activating all active plugins and check if that helps. If not, please try editing the file via FTP. You can find the file in wp-content/themes/enfold/functions.php
Regards,
YigitNovember 24, 2015 at 3:06 pm #541674Hi Yigit,
When I deactivate plug ins it becomes Appearance>Install Plug-ins
I cannot understand FTP. Can you do it for me, please?
Account info below.
Cheers!
B
November 24, 2015 at 3:08 pm #541677Hi!
We are going to need FTP credentials. If you do not know them, please contact your hosting provider and they can give you. Then please post them here privately.
Cheers!
YigitNovember 24, 2015 at 3:15 pm #541684Hi
Please try info below.
Cheers!
B
November 24, 2015 at 3:19 pm #541688Hi!
These credentials are not working for me. Please check them once again.
Regards,
YigitNovember 24, 2015 at 3:26 pm #541701Hi
Please try again as they work okay for me!
Cheers!
B
November 24, 2015 at 3:32 pm #541704Hi!
I have enabled custom CSS field for ALB for you. Please review your website now
Regards,
YigitNovember 24, 2015 at 4:11 pm #541736Hi
“…edit your element to give it a custom CSS class and then change your code to following one…”By ‘element’ do you mean the Code Block box or the Accordian box? I have given the CSS class a name [Toggler] and input the code you gave me into the Code Block. Nothing happens to the Accordian …
Please see:
https://lavitrineduvin.com/en/2015/11/23/picpoul-de-pinet/Thanks!
B
November 24, 2015 at 4:20 pm #541740Hey!
Please edit your accordion and give it a custom class “your-custom-class” (or change it as needed, if you change it you would need to change all “.your-custom-class” in the code i posted to new class) and add the code to Quick CSS field in Enfold theme options > General Styling not into code block element
Best regards,
YigitNovember 24, 2015 at 5:46 pm #541819Hi Yigit,
That’s got it – many thanks!
One final alteration for now. Can you let me have the code that will add colored lines around the edges of the accordians so they show up more clearly on the page? In other words, red lines round the red accordians and green around the green?
Thanks!
B
November 24, 2015 at 5:49 pm #541825Hi!
Can you please post a screenshot and show the changes you would like to make? You can upload your screenshots on imgur.com or Dropbox public folder and post the links here.
Cheers!
YigitNovember 24, 2015 at 7:32 pm #541892Hi Yigit
Please see this at
https://www.dropbox.com/s/ygvte8qrc9wfxwa/Accordians.jpg?dl=0
I want the lines to be very fine/thin AND NOT THICK like in the image.
Over to you?
Thanks.
B
November 24, 2015 at 9:51 pm #541949Hi Yigit,
The green accordians have returned to being red. What have I done wrong?
Please see:
https://lavitrineduvin.com/en/2015/11/23/picpoul-de-pinet/
Thanks!
B
November 30, 2015 at 6:36 pm #544713Hi!
I can see that you are using this code in your source code:
p.toggler strong { color: #b02b2c; }
Change it to:
p.toggler strong { color: green; }
Check your custom css code in Quick CSS field or custom.css if some code is causing this issue. Remove all code to check which one is causing it.
Regards,
AndyNovember 30, 2015 at 9:17 pm #544801Hi
Thanks, but…I have tried changing as you suggested but with no success.
Yigit seems to be the expert on this matter. Can he take a look at it, please?
Thanks,
B.
November 30, 2015 at 9:36 pm #544807Hi!
Please use following code instead
.enable_toggles * { border-color: #719430 !important; }
Regards,
YigitNovember 30, 2015 at 9:39 pm #544809Hi Yigit,
Many thanks.
Instead of what?
Thanks,
B
November 30, 2015 at 9:55 pm #544823 -
AuthorPosts
- You must be logged in to reply to this topic.