travelI'm on Holidays until the 21 august.

The questions posted during this period will receive no answer, so please be patient and wait before posting in the forum. Thank you

New registrations are suspended during this period

Je suis en vacances jusqu'au 21 aout.

Je ne répondrai à aucune question postée durant cette période. Merci d'attendre mon retour. Merci

Les inscriptions sur le site sont suspendues pendant cette période

 

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: ACTIVE STATE?????

ACTIVE STATE????? 20 Dec 2016 18:47 #39326

I looked through the forum and tried every example that was suggested for an active state. I even purchased the Accordeon Menu CK Params and I still cannot figure out how to make this work. Why wasn't the ACTIVE state CSS added before I downloaded this module - it doesn't make any sense that I have to add the CSS, it should come pre-installed.

Anyhow - how do I fix this issue??? I need an active state present so that the user knows what pages he/she is on. I am using alias menu items for the sub-navigation.

Thank you.

Please Log in to join the conversation.

ACTIVE STATE????? 20 Dec 2016 18:58 #39327

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 17658
  • Karma: 391
  • Thank you received: 2263
Hi
by default it works. This said, I can imagine that you have a problem on your website using the menu.

Do you have a cache system enabled ?
CEd

Please Log in to join the conversation.

Joomlack Webmaster and Developer

ACTIVE STATE????? 20 Dec 2016 19:56 #39329

I do not have cache enabled.

Here is the PHP/CSS file that I modified mod_accordenck_css.php from default folder:

<?php
header('content-type: text/css');
$id = 'ul#'.htmlspecialchars ( $_GET , ENT_QUOTES );
?>

/*
-- Default theme Menu Accordeon CK --
-- This is a blank theme with annotations --
-- you can fill it like you want --
-- to put your own CSS --
*/


/* main UL container */
<?php echo $id; ?> {
text-decoration: none;


}

/* style for all links */
<?php echo $id; ?> li {
background: none;
text-decoration: none;

}

/* style for all anchors */
<?php echo $id; ?> li a {
background: none;
text-decoration: none;
}

<?php echo $id; ?> li a.active {
background: none;
text-decoration: none;
color: #B83A32;
}


<?php echo $id; ?> .accordeonck_outer {
display: block;
text-decoration: none;
}


/* style for all link descriptions */
<?php echo $id; ?> li a span.accordeonckdesc {
display: block;
text-decoration: none;
}



/*
-- Level 1 --
*/

/* first level (root) link */
<?php echo $id; ?> li.level1 {
list-style-type: none;

}

/* first level (root) link anchor */
<?php echo $id; ?> li.level1 > a {
text-decoration: none;

}

/* first level (root) link anchor */
<?php echo $id; ?> li.level1 > a.active {
text-decoration: none;
color: #B83A32;

}



/* first level (root) link description */
<?php echo $id; ?> li.level1 > a span.accordeonckdesc {

}


/*
-- Level 2 --
*/

/* second level link */
<?php echo $id; ?> li.level2 {

}

/* second level link anchor */
<?php echo $id; ?> li.level2 > a {
text-decoration: none;

}

/* second level link description */
<?php echo $id; ?> li.level2 > a span.accordeonckdesc {

}

/*
-- Level 3 and more --
*/

/* third and deeper level link */
<?php echo $id; ?> li.level2 li {

}

/* third and deeper link anchor */
<?php echo $id; ?> li.level3 a {

}

/* third and deeper link description */
<?php echo $id; ?> li.level3 a span.accordeonckdesc {

}



Please tell me what I am doing wrong. Again, I am using menu item alias if that makes a difference.

Thank you.

Please Log in to join the conversation.

ACTIVE STATE????? 20 Dec 2016 20:09 #39330

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 17658
  • Karma: 391
  • Thank you received: 2263
please give me your url to check

Please Log in to join the conversation.

Joomlack Webmaster and Developer

ACTIVE STATE????? 20 Dec 2016 20:25 #39332

You can use this URL:
www.amegoinc.org/programs-services/adult...ces/day-habilitation

You will need to adjust your HOSTS file to see the website as it is in development:

107.180.28.42 www.amegoinc.org
107.180.28.42 amegoinc.org

I've also tried adding the following without any success:

#accordeonck203 li.level1 > .accordeonck_outer a.active {
text-decoration: none;
color:#B83A32;
}

#accordeonck203 li.level1 > a.active {
text-decoration: none;
color:#B83A32;
}


Thank you for your assistance.

-paul

Please Log in to join the conversation.

ACTIVE STATE????? 21 Dec 2016 10:32 #39338

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 17658
  • Karma: 391
  • Thank you received: 2263
please make your website online, I can not modify my hosts file for every website that I need to check :)

Please Log in to join the conversation.

Joomlack Webmaster and Developer

ACTIVE STATE????? 21 Dec 2016 14:28 #39341

I can't just publish the website, it's not finished...this is the only way to view it until it's ready.

I've attached two screenshots with firebug, but I'd really appreciate it if you could look at



dev.

Please Log in to join the conversation.

ACTIVE STATE????? 21 Dec 2016 19:02 #39345

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 17658
  • Karma: 391
  • Thank you received: 2263
ok
you can use this rule in the theme or any css file

ul#accordeonck203 li.accordeonck.active > span a {
color: #B83A32;
}

Please Log in to join the conversation.

Joomlack Webmaster and Developer

ACTIVE STATE????? 21 Dec 2016 21:19 #39353

Thank you, that worked. I'll replicate this for the other IDs - your help is greatly appreciated.

Happy Holidays!

Please Log in to join the conversation.

ACTIVE STATE????? 21 Dec 2016 21:24 #39354

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 17658
  • Karma: 391
  • Thank you received: 2263
thank you, happy holidays to you too !

a little tips, if you are using the same theme for all modules you can use <?php echo $id; ?> like this

<?php echo $id; ?> li.accordeonck.active > span a {
color: #B83A32;
}


this avoids to replicate the css rule for each menu ID
The following user(s) said Thank You: flebotomy

Please Log in to join the conversation.

Joomlack Webmaster and Developer
  • Page:
  • 1
  • 2
Time to create page: 0.368 seconds

Fast and powerful creation, customizable and responsive.

Read More

Qui est en ligne

We have 322 guests and no members online