Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10124

    Hello,

    I’m trying to add some elements to my custom article category “tips” sidebar but it doesn’t work (see here http://screencast.com/t/cZeSsuue). Nothing displays in the sidebar on my article. See screenshot from my widget page (adding calendar to “tips” articles) : http://screencast.com/t/iBRSCjMUb and see my article live : http://www.sensionest.com/bonjour-tout-le-monde/

    As you can see, the calendar widget is not displayed. And where do come from all other widgets? (there aren’t any widget on my sidebars though)

    Any idea?

    Thank you very much for your help

    #66948

    Hey!

    I am afraid the custom category sidebar doesnt work with the single post view but rather with the category overview. as you can see here the sidebar is applied correctly with the calender on the overview page:

    http://www.sensionest.com/category/tips/

    if you want to modify that behaviour to also display thosw widgets on single entries open function-set-avia-frontend in propulsion/framework/php/ and scroll down to line 662 which should read:


    if(is_page($clean_id_array))
    {
    return get_the_title();
    }
    else if(is_category($clean_id_array))
    {
    return single_cat_title( "", false );
    }

    make it read:


    if(is_page($clean_id_array))
    {
    return get_the_title();
    }
    else if(is_category($clean_id_array))
    {
    return single_cat_title( "", false );
    }
    else if(in_category($clean_id_array))
    {
    return get_cat_name( $clean_id_array[0] );
    }

    #66949

    Great it’s working.

    Thanks!

    #66950

    Glad its all working for you :)

    Marked as resolved!

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Custom article category sidebar doesn't work’ is closed to new replies.