Youjoomla Support Forums (http://www.youjoomla.com/joomla_support/index.php)
-   YJSG Template Framework Plugin (http://www.youjoomla.com/joomla_support/forumdisplay.php?f=269)
-   -   use new accordion class (http://www.youjoomla.com/joomla_support/showthread.php?t=16117)

michy80 01-22-2017 12:21 PM

use new accordion class
 
1 Attachment(s)
Hi,
in Eximium template there is this class:
.yjsgaccGroup {
display: block;
position: relative;
padding: 0;
margin: 0 0 3px 0;
border: 1px solid #ddd;
-webkit-border-radius: 3px;
-khtml-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}


If in the custom.css file i create another class, for example
.yjsgaccGroup2 {
display: block;
position: relative;
padding: 0;
margin: 0 0 3px 0;
/* border: 1px solid #ddd; */
-webkit-border-radius: 3px;
-khtml-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 0px;
}

when i insert an accordion in my article I cannot use the second class.
Instead, if I inspect the page with mozilla and I rename the class (like shown in the attacched image), I obtain what i want.
My goal is to have some accordion with standard Eximium class and some other accordion with my new class.
How can I do this?
Thanks.

Are you sure your are posting in product assigned forum?: Yes

What is your CMS version?: Joomla 3.x

MySQL Version: 5.x

PHP version: 5.x

Link to installation: test installation

Have you edited any files? If yes tell us which ones.: Yes

Is this personal or client website?: Personal

Are you sure your are posting in product assigned forum?: Yes

What is your CMS version?: Joomla 3.x

MySQL Version: 5.x

PHP version: 5.x

Link to installation: test installation

Have you edited any files? If yes tell us which ones.: Yes

Is this personal or client website?: Personal

arefund 01-23-2017 10:05 AM

Hello michy80.
When you create your accordions you can add your custom ID to it.
http://prntscr.com/dz9gpe
After that you can use your id class and add it to the custom.css file, like this:

#myid .yjsgaccGroup{
your css
}

michy80 01-24-2017 09:04 AM

3 Attachment(s)
Hi Arefund,
and thanks for your answer. I tried to do what you wrote but it does not work (maybe i did some errors??).
In attachment what I did following your advices.
Waiting for your answer.
Thanks again

michy80 01-30-2017 08:34 AM

Hi Arefund,
have you got some news about y request?
Many thanks

arefund 01-30-2017 09:05 AM

Can you please post your site link so I can check it live, might be that some other class is taking over the style.

michy80 01-30-2017 09:30 AM

Hi,
this is the page where i tried to do what you wrote to me.
The last accordion "My title" is where i need to insert another accordion class
PS: i've not bought the licence removal because the site is not completed yet.

Let me know, thanks

arefund 01-31-2017 12:06 PM

As you can see here http://prntscr.com/e2qdpv i checked the class and its working properly.
When you add your css attributes and they are not working try to add !important to it.

michy80 02-01-2017 09:49 AM

Hi Arefund,
thank you for your answer. Adding !important to the css rule it works!
Thank you again!


All times are GMT -4. The time now is 10:57 AM.

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.