Weekly Freebie #3: Grab 3 Premium Joomla Templates For FREE
0
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum

We are here to serve :)

Our support team is currently online to solve your issues.

Our support team is currently offline

Our support heroes might not be around this hour. Please expect some delays.

Our support is available from

Monday - Friday 8am - 5:30pm GMT+7

Your time: 00:00:00
Our time: 00:00:00

Welcome, Guest
  • Page:
  • 1

TOPIC: menu item class

menu item class 7 years ago #11910

Dear sir,
i am trying to add a class to main menu item in order to use csssprite but it doesn't take effect!
can you please provide with this issue!t
thank you

Re: menu item class 7 years ago #12048

  • admin
  • OFFLINE
  • Administrator
  • Posts: 1081
  • Karma: 14
Dear pikiame,

You can use ul#meganavigator or ul.navi

Thanks
Join our Clubs to download our extensions and templates

Re: menu item class 7 years ago #12058

in the joomla administrator css link style? or how to do it?

Re: menu item class 7 years ago #12144

Dear pikiame,

Please go to your_site\plugins\system\yt\includes\libs\menu\params\params.xml and find:

<field name="ytext_cssid" type="text" size="30" default="" label="Mega Content ID" description="Mega Content ID" />

=>
<field name="ytext_cssid" type="text" size="30" default="" label="Mega Content ID" description="Mega Content ID" />
<field name="ytmenu_class" type="text" size="30" default="" label="Mega Menu Class" description="Mega Menu Class" />


Then go to your_site\templates\sj_worldnews\menusys\ytmenu.php and find:
public function getClass(){
			$liClass = '';
			if ($this->get('active')==1 && !in_array('active', $this->_classes)){
				array_unshift($this->_classes, 'active');
			}
			if(count($this->_classes)>0){
				$liClass = implode(' ', $this->_classes);
			}
			return $liClass;
		}

=>
public function getClass(){
			$liClass = '';
			$mega_menu_class = $this->params->get('ytmenu_class');
			if ($this->get('active')==1 && !in_array('active', $this->_classes)){
				array_unshift($this->_classes, 'active');
			}
			if(count($this->_classes)>0){
				$liClass = implode(' ', $this->_classes);
				$liClass = $liClass.' '.$mega_menu_class;
			}
			return $liClass;
		}


You can add class in Menu Manager-> Your menu item -> YT Menu Params for this Menu Item -> Mega Menu Class


Thanks
Last Edit: 7 years ago by thuygtn.
  • Page:
  • 1
Time to create page: 0.47 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.
Weekly Freebie #3: Grab 3 Premium Joomla Templates For FREE

Suggested Posts

(/)
Result not found!

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes