getting my includes to work (6 posts)

  1. nailPOLISH
    Posted 10 years ago #

    UGH! I have tried almost everything that i know and still the header for my pages on my siote does not work:

    why isnt the header workinks. feel free to view source.

    the actual header coding is:

    <?php wp_head(); ?>
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

    <LINK REL=stylesheet HREF="http://www.rochelle.infamous-mind.net/wordpress/wp-content/themes/default/style.css" TYPE="text/css">
    <div style="position:absolute; top:0; left:0;">
    <img src="http://www.rochelle.infamous-mind.net/images/layout.gif" border="0">

    <div id="menu" style="position:absolute; width:165px;left: 63px; top: 521px">

    <?php get_sidebar(); ?>

    <!--MAIN CONTENT-->
    <div id="menu" class="content" style="position:absolute; width:407px;left: 236px; top: 521px">

    if anyone can help it is greatly appreciated!!!!


  2. What in the heck is "pinkg.php"?

    The error you are getting is that wp_head() is undefined, suggesting that you're not actually going through and loading WordPress correctly in the first place. I suspect this is due to your use of your own "pinkg.php" or whatever that is.

    What are you trying to do here?

  3. nailPOLISH
    Posted 10 years ago #

    Its for my website. its pink gradients. I azm trying to get the page to have the header on the top. sorry im kinda a wp newbie.

    what do i do with wp_head()?

  4. nailPOLISH
    Posted 10 years ago #

    hmm never mind i guess. ill just create the pages as wp pages.

  5. Medizinische Abkuerzungen
    Posted 10 years ago #

    Fatal error:
    Call to undefined function: bloginfo() /home/mikestah/public_html/rochelle/wordpress/wp-content/themes/default/header.php

    It seems that there is no function bloginfo defined.

    What are we looking at? A wordpress-blog? Did you include parts of wordpress in a different php-file?

  6. I azm trying to get the page to have the header on the top. sorry im kinda a wp newbie.

    Ah. No worries. Leave the code as is and add this to the very top of pinkg.php:

    <?php require('your_wordpress_dir/wp-blog-header.php'); ?>

    This will include wordpress into your code, thus giving you access to all of its functionality. Well, most of its functionality, anyway.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.