ThemeShaper Forums » Thematic


One way to style a single page differently

(1 post)
  • Started 12 years ago by elderberry
  • This topic is resolved
  1. elderberry

    Hi All, with the help of this forum (thanks!) I have been able to add some custom functions to my child theme even though I an not a coder (princess cut and paste).

    Here's a function I wrote to add another stylesheet to a specific page, maybe it will be useful to others:

    // change styling for merchant-catalog
    function merchant_layout() {
    if (is_page('merchant-catalog')) { ?>
    <link rel="stylesheet" type="text/css" href="<?php echo bloginfo('stylesheet_directory') ?>/merchant.css" />

    <?php }
    add_action('wp_head', 'merchant_layout');

    Posted 12 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.