• Resolved lqz

    (@lqz)


    I would really like to make a WordPress Page with it’s own sidebar and background image. I tried to make a Page Template that would import a custom CSS file but I couldn’t get that to work.

    Can someone help me out please.

    Thanks,

    lqz

Viewing 3 replies - 1 through 3 (of 3 total)
  • Try using Conditional Tags. For the sidebar, for example — in your sidebar.php file for the theme you are using, add the information for the second sidebar after the information for the existing sidebar. If you want a different links list for this one page, add it under the links for the main sidebar, or whatever changes you want to make. Then, wrap the new information in a conditional tag such as is_page(**) where the asterisks are replaced by the page number for that page.

    For the header, upload your second header image into your images file, then in header.php, copy the code that calls in the original header, change the url to the new header image, and wrap this new code in the same conditionl tag as above.

    If you’re still confused, post back with you url and more questions and I’ll try to better help you.

    Thread Starter lqz

    (@lqz)

    Thanks for you post brittanie. I looked at that page but I didn’t see what I needed.

    I found what I wanted in the admin-header.php, this is what I did.

    I made a new Page Template and copied the info from the header.php, index.php, and sidebar.php in to it. I know I could have made custom files for header and sidebar, but I didn’t see the point.

    I changed the call for the CSS file from…

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

    to:

    <link rel=”stylesheet” href=”<?php echo get_settings(‘siteurl’) ?>/wp-content/themes/theme-name/style_name.css?version=<?php bloginfo(‘version’); ?>” type=”text/css” />

    Now when I make a Page I can use Page Template option to choose the look of that Page. I don’t really have a site to link to right now, just playing a round seeing what I can do. But thanks again for your reply.

    As with most things, there are of course multiple solutions. Congrats on figuring it out for yourself, though!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘New Page new sidebar and new background image please.’ is closed to new replies.