Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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’ );

    #526809

    Hi endoradigital!

    Thank you for using Enfold.

    That is the Page Sidebar navigation. You can disable that in the Enfold > Sidebar Settings.

    Cheers!
    Ismael

    #527515

    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?

    #528652

    Hi!

    you are using a very old version of the theme. Please upgrade to Enfold v3.3.2. (make a backup, just in case).

    Regards,
    Andy

    #528747

    The theme has been updated and the sidebar is still not returning the right elements.

    #529039

    Hi,

    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,
    Rikard

    #529466

    When 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

    #529475

    Sorry 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

    #530093

    Hi!

    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,
    Andy

    #531066

    Yes 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.

    #531679

    We found the issue.

    Our shortcode needed a wp_reset_query();

    #532343

    Hi!

    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

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.