• Hi guys, i really have an issue here, Im using the miimal Horizontal theme (http://www.promojunkie.com/forum/free-templates/23315-minimal-horizontal-free-wordpress-theme.html)

    There is a small navigation bar on the bottom left of the screen which auto scrolls left and right when you hold the button down. Now my problem is that the function only seems to be on the home page, when i create a new page (about us, gallery, whatever) its not there?

    There is not template to set the page too so it uses that function.

    Here is the Functions.php

    <?php
    function completeTheme(){
    echo ‘<div id=”arrows”>

      <li class=”lb”>Home
      <li id=”left” class=”lb”><
      <li id=”right” class=”lb”>>

    • Navigate

    Now how would i get this to run in all pages?

    i have checked the index.php for any specific codes that might relate to this function in comparison to the page.php but nothing?

    here is the index.php

    <?php get_header(); ?>

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class=”post”>
    <div class=”date”><?; ?></div>
    “><?php the_title(); ?>
    <div class=”postcontent”>
    <?php the_content(”); ?>
    </div>

    </div>
    <?php $x++; ?>
    <?php endwhile; ?>
    <div id=”end”>
    <?php next_posts_link(‘Older’) ?>
    <?php previous_posts_link(‘Newer’) ?>
    </div>

    <?php else : ?>

    <div class=”post”>

    </div>

    <?php endif; ?>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    And here is the page.php

    <?php get_header(); ?>

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class=”post”>
    <div class=”date”><?; ?></div>
    “><?php the_title(); ?>
    <div class=”postcontent”>
    <?php the_content(”); ?>
    </div>

    </div>
    <?php $x++; ?>
    <?php endwhile; ?>
    <div id=”end”>
    <?php next_posts_link(‘Older’) ?>
    <?php previous_posts_link(‘Newer’) ?>
    </div>

    <?php else : ?>

    <div class=”post”>

    </div>

    <?php endif; ?>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    i dont really see a difference? am i being daft here as i honestly cant seem to get the nav function in Functions.php to work on all pages..

    Please, you help is much apprecited.

  • The topic ‘Function only works on index page (home page)’ is closed to new replies.