-
AuthorPosts
-
October 28, 2015 at 11:55 pm #526460
I followed the instructions on https://kriesi.at/support/topic/need-additional-sidebar/ and created a widget area called “product name” right sidebar
I then set the followig items in two different pages
Layout: right sidebar
Sidebar Setting: “Product Name” Right Sidebar
One page shows a product navigation (not sure where this is coming from) and then the “Product Name” Right Sidebar and the other shows default widgets.
I’m not sure why these are displaying differently when they are set the same and not sure where the product menu is coming from. I checked the product menu and there isn’t anything checked to displaying it in a widget area, all options are unchecked.
We believe that the following shortcode may be causing this issue
function medicationPage( $atts ) {
$atts = shortcode_atts(
array(
‘category’ => ‘0’), $atts, ‘medCat’ );$categories = get_the_category();
$catName = $categories[0]->name;
$catDesc = $categories[0]->description;query_posts( array(‘post_type’ => ‘post’, ‘cat’ => $atts[‘category’], ‘posts_per_page’ => -1, ‘meta_key’=>’post_order’, ‘orderby’ => ‘meta_value_num’, ‘order’ => ASC ) );
$output = ”;
$output = $output.'<h1>’.$catName.'</h1>’;
$output = $output.'<h5>’.$catDesc.'</h5><br>’;
$titleLoop = 1;
while ( have_posts() ) : the_post();
$titleData = get_the_title();
$idTitle = str_replace(” “, “-“, $titleData);
$content = get_the_content();
$contentData = get_content_with_formatting($content);
$output = $output.'<div class=”postdata”>’;
$output = $output.'<a name=”‘;
$output = $output.$titleData;
$output = $output.'” id=”‘;
$output = $output.$idTitle;
$output = $output.'”>‘;
$output = $output.'<div id=”content’.$titleLoop.'”>’;
$output = $output.$contentData;
$output = $output.'</div>’;
$output = $output.'</div>’;
$titleLoop = $titleLoop + 1;
endwhile;return $output;
}
add_shortcode( ‘medCat’, ‘medicationPage’ );function medicationTitle( $atts ) {
$atts = shortcode_atts(
array(
‘category’ => ‘0’), $atts, ‘medCat’ );query_posts( array(‘post_type’ => ‘post’, ‘cat’ => $atts[‘category’], ‘posts_per_page’ => -1, ‘meta_key’=>’post_order’, ‘orderby’ => ‘meta_value_num’, ‘order’ => ASC ) );
$output = ”;
$output = $output.'<div id=”leftnav”>’;
while ( have_posts() ) : the_post();
$titleData = get_the_title();
$output = $output.'<p><a href=”#’;
$output = $output.$titleData.'”>’.$titleData.’</p>’;
endwhile;
$output = $output.'</div>’;return $output;
}
add_shortcode( ‘medTitle’, ‘medicationTitle’ );October 29, 2015 at 3:02 pm #526809Hi endoradigital!
Thank you for using Enfold.
That is the Page Sidebar navigation. You can disable that in the Enfold > Sidebar Settings.
Cheers!
IsmaelOctober 30, 2015 at 4:11 pm #527515That helps; however, could you please help me figure out why the sidebar isn’t the same on both pages I provided the url for?
November 2, 2015 at 5:19 pm #528652Hi!
you are using a very old version of the theme. Please upgrade to Enfold v3.3.2. (make a backup, just in case).
Regards,
AndyNovember 2, 2015 at 7:02 pm #528747The theme has been updated and the sidebar is still not returning the right elements.
November 3, 2015 at 9:00 am #529039Hi,
You are still using 3.0.8, I saw that you were doing that in a previous thread as well. Any particular reason for not using the latest version?
Regards,
RikardNovember 3, 2015 at 4:52 pm #529466When I go to my theme and then updates I see the following. If I check manually there still isn’t anything avail. Why doesn’t it know there is a newer theme than 3.0.8?
Theme Updates
No Updates available. You are running the latest version! (3.0.8)Check Manually
November 3, 2015 at 5:03 pm #529475Sorry silly me. I was entering the purchase code rather than the API key.
We are having a problem updating on the windows server because it’s generating a download file with a really long filename.
It’s now updated and still the sidebars are different
- This reply was modified 9 years, 1 month ago by endoradigital.
November 4, 2015 at 3:45 pm #530093Hi!
is you last post still a question about widget logic? If not it would be best to open a new ticket for a new question.
Can you explain more about the issue please? do you want to update the theme? about which generated download file are you talking about?
Regards,
AndyNovember 5, 2015 at 6:27 pm #531066Yes when I started typing my question, I thought maybe just designating a different sidebar would be better than using Widget Logic; however, I did not update my subject. If you read through the threads it never really was about widget logic.
We got the theme updated; however, I have two pages as mentioned above that are set exactly the same but are displaying different items in the sidebar. One page uses shortcodes.
November 6, 2015 at 11:54 pm #531679We found the issue.
Our shortcode needed a wp_reset_query();
November 9, 2015 at 6:03 am #532343Hi!
Great! Not sure what that meant but glad you found the issue. If you need anything else, let us know! :)
That helps; however, could you please help me figure out why the sidebar isn’t the same on both pages I provided the url for?
You can actually set the pages to use the same sidebar. Edit the page then look for the Layout > Sidebar Settings. Select the widget area that you want to display on that particular page.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.