Forum Support

Shape 5
March 28, 2024, 04:02:43 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: my S5 Accordion Menu got error in wordpress...  (Read 1049 times)
BrentLin
Jr. Member
**
Offline Offline

Posts: 10



« on: September 27, 2014, 09:53:44 PM »

my S5 Accordion Menu got error in wordpress, can anyone help me? Urgency!!!
Logged
BrentLin
Jr. Member
**
Offline Offline

Posts: 10



« Reply #1 on: September 28, 2014, 06:10:20 PM »

can anyone help me? i need to handle this as soon as possible...
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #2 on: September 29, 2014, 07:34:12 AM »

Here's a solution I provided to another member:


I'll be uploading an updated version of the plugin in the next few days; until then, here's a fix:

In the "accordion_menu_walker.php" file in the plugin folder, find the following code:

Code:
class Accordion_Menu_Walker extends Walker_Nav_Menu{

function display_element ($element, &$children_elements, $max_depth, $depth = 0, $args, &$output){

And change it to:

Code:
class Accordion_Menu_Walker extends Walker_Nav_Menu{

var $options;

function display_element ($element, &$children_elements, $max_depth, $depth = 0, $args, &$output){


That should fix all the errors. 

If you don't want to add that single line of code, you can  just grab the latest download of the plugin, as I have already updated the download with the new code.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
BrentLin
Jr. Member
**
Offline Offline

Posts: 10



« Reply #3 on: September 29, 2014, 07:53:23 AM »

Here's a solution I provided to another member:


I'll be uploading an updated version of the plugin in the next few days; until then, here's a fix:

In the "accordion_menu_walker.php" file in the plugin folder, find the following code:

Code:
class Accordion_Menu_Walker extends Walker_Nav_Menu{

function display_element ($element, &$children_elements, $max_depth, $depth = 0, $args, &$output){

And change it to:

Code:
class Accordion_Menu_Walker extends Walker_Nav_Menu{

var $options;

function display_element ($element, &$children_elements, $max_depth, $depth = 0, $args, &$output){


That should fix all the errors. 

If you don't want to add that single line of code, you can  just grab the latest download of the plugin, as I have already updated the download with the new code.

Thanks so much, it works now.
and i want to add some plugins to display my products in this theme as a posts or pages, but i have tried some plugins, those were not very good in this theme, so can you give me some suggestion about the plugins which are the best for it?thanks
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #4 on: September 30, 2014, 10:15:04 AM »

What exactly are you trying to do?  If you're trying to set up an e-commerce site, multiple members have had success with WooCommerce, after making a minor tweak to the code.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.