• hi ..i maintain a blog with a particular theme. I want some pages to have entirely different themes. i read that this can be done with custom page templates. But, if i try to copy over a page.php from one theme and put it under another theme as a custom template, there are lot of potential issues because of the css divs used in this theme etc.
    Any idea how my requirement can be tackled ?
    thx a lot in advance

Viewing 1 replies (of 1 total)
  • Hi

    You can load a second CSS file when you are displaying those pages. Make sure it is added in header.php AFTER style.css is defined. CSS declarations in the 2nd file with the same names as those in the first file will override the ones in the first file. That is part of how CSS works.

    Your code can look like this

    <?php if ( is_page('mypagename1') || is_page('mypagename2') || is_page('mypagename3') ) { ?>
       <link href="<?php bloginfo('template_directory'); ?>/mystylesheet.css" rel="stylesheet" type="text/css">
    <?php } ?>

Viewing 1 replies (of 1 total)
  • The topic ‘copy one theme as custom page template into another’ is closed to new replies.