Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1205858

    Hello,

    I am trying to make my single category archives display in the same look as my main blog. I tried using:

    add_filter(‘avf_blog_style’,’avia_change_category_blog_layout’, 10, 2);
    function avia_change_category_blog_layout($layout, $context){
    if($context == ‘archive’) $layout = ‘single-big’;
    return $layout;
    }

    But I am getting this error:
    Warning: Use of undefined constant ‘avf_blog_style’ – assumed ‘‘avf_blog_style’’ (this will throw an Error in a future version of PHP) in functions.php on line 47

    Warning: Use of undefined constant ’avia_change_category_blog_layout’ – assumed ‘’avia_change_category_blog_layout’’ (this will throw an Error in a future version of PHP) in functions.php on line 47

    Thanks

    #1205886

    Hey Pappasdg,

    Please check the single quotes in the code, they might be incorrect.

    should be

    '

    Best regards,
    Victoria

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