• hi all i am using the Widget Logic add on to control the appearance of my widgets in the site

    there is some pages without any widgets
    and i want if there is no content in the sidebar
    i want the post page to use the full page templates
    in the pages i can set the fullpage templates
    but in the posts i can’t

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter majedali

    (@majedali)

    am i clear ??

    ok if i have a category and i want just in that category to use the full page template

    how can i do it

    Thread Starter majedali

    (@majedali)

    hi i found this code but still not work if u can help

    for archive.php

    if (is_category('1')) {
    include('full-page.php');
    } else {
    // the rest of the code
    }

    or in the single.php

    foreach((get_the_category()) as $category) {
    if ($category->cat_ID == 1) { $istheone = true; }
    }
    if ($istheone) {
    include('full-page.php');
    } else {
    // the rest of the code
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how : if there is no widgets use the full page templates in posts’ is closed to new replies.