Forum Replies Created

Viewing 3 replies - 181 through 183 (of 183 total)
  • Thread Starter DebT

    (@debbiet)

    Can you double check your code? When I put this in the header.php I get an error message UNEXPECTED T_STRING in line 30, which is where this code was placed. I don’t understand all the brackets, semicolons etc. so can’t fix it myself. Thanks!

    <?php if ( is_page(‘home’,’about’,’contact-2,’work-samplestestimonials’)) { ?>
    <link rel=”stylesheet” href=”<?php bloginfo(‘template_directory’) ?>/onecol.css” type=”text/css” media=”screen, projection” />;
    <?php } ?>
    <link rel=”stylesheet” href=”<?php bloginfo( ‘stylesheet_url’ ); ?>” type=”text/css” media=”screen, projection” />

    Thread Starter DebT

    (@debbiet)

    I’ve read the Conditional Tags page, but since I don’t know php, I really don’t know exactly what I have to do. I want to make most of the pages in the site to have one column, and keep the 2 columns for the blog page. I can make a style sheet that removes the 2nd column on certain pages. Do I put the conditional tags in the header.php file? If so, do I just replace this:

    <!– Stylesheets –>
    <link rel=”stylesheet” href=”<?php bloginfo( ‘stylesheet_url’ ); ?>” type=”text/css” media=”screen, projection” />

    with this? If so, did I miss any codes or details in this? I made a “home” page which is the front page, is it correctly called ‘home’ in the tag?

    <!– Stylesheets –>
    <?php

    if ( is_page(‘home’,’about’,’contact-2,’work-samplestestimonials’)) {
    <link rel=”stylesheet” href=”<?php bloginfo( ‘stylesheet_url’ ); ?>” type=”text/css” media=”screen, projection” />
    <link rel=”stylesheet” href=”<?php bloginfo( ‘onecol.css’ ); ?>” type=”text/css” media=”screen, projection” />;

    } else {
    <link rel=”stylesheet” href=”<?php bloginfo( ‘stylesheet_url’ ); ?>” type=”text/css” media=”screen, projection” />;
    }
    ?>

    https://corporategiftconcierge.com/

    Thread Starter DebT

    (@debbiet)

    Thanks I’ll try to figure that out.

Viewing 3 replies - 181 through 183 (of 183 total)