Support » Fixing WordPress » How does WP know which DIV to use for multiple CSS files

  • Per the below link I am trying to integrate ZenPhoto with WP. This requires me to use the WP function addcss to add another css file (the zenphoto css file) to my WP header. If the WP CSS has a DIV ID = Main and the ZenPhoto CSS file has a DIV ID = MAIN then which DIV ID does the code process ?

    Some of my code from blogs/zenphoto/index.php

    ‘<?php if (!defined(‘WEBPATH’)) die(); ?>
    <?php require($_SERVER[‘DOCUMENT_ROOT’].’/blogs/wp-blog-header.php’); ?>

    <?php
    // add the zen css and javascript to the wordpress header
    function addcss() {
    global $_zp_themeroot;
    echo ‘<link rel=”stylesheet” href=”‘.$_zp_themeroot.’/default/styles/light.css” type=”text/css” />’;
    printRSSHeaderLink(‘Gallery’,’Gallery RSS’);
    zenJavascript();
    }
    add_action(‘wp_head’, ‘addcss’);
    ?>

    <?php get_header(); ?>
    // connect to the zenphoto db
    <?php db_connect(); ?>
    <div id=”content”>

    <div id=”main”>
    <div id=”gallerytitle”>
    <?php if (getOption(‘Allow_search’)) { printSearchForm(”); } ?>
    <h2><?php printHomeLink(”, ‘ | ‘); echo getGalleryTitle(); ?></h2>
    </div>

    <div id=”padbox”>’

  • The topic ‘How does WP know which DIV to use for multiple CSS files’ is closed to new replies.