WordPress.org

Ready to get started?Download WordPress

Forums

clickable header in inove template (14 posts)

  1. iddo12
    Member
    Posted 4 years ago #

    Hello all,
    I am new here and new to WordPress in general.

    I am using a customized version of inove template (see zebradomain.com) but I can't seem to make the logo clickable.

    I know this had been discussed to death in the forums and elsewhere and I read everything I found and it didn't really help (maybe because I know just about nothing when it comes to HTML/PHP etc).

    Here is how my header.php file looks like (nothing like any I have seem on other posts on this matter - this is why I am having problems I guess):

    <?php include('templates/start.php'); ?>

    <!-- container START -->
    <div id="container">

    <?php include('templates/header.php'); ?>

    <!-- content START -->
    <div id="content">

    <!-- main START -->
    <div id="main">

    How should I change this to make the header clickable?

    Thanks for your percipience with me on this I know its annoying to hear the same questions over and over.

    Iddo

  2. figaro
    Member
    Posted 4 years ago #

    See the third video in the post below at about 4:30. It's isn't iNove, but you do essentially the same thing.

    http://educhalk.org/blog/?p=137

  3. iddo12
    Member
    Posted 4 years ago #

    Hi Fingaro,
    First thanks for the quick response - I read a few post you did before and I can see you helped a lot of people.

    I watched the video and did what I think was mentioned in it and this is what happened:
    http://zebradomain.com/

    So now I have the header twice but the clicable one is not in the right place...

    My header.php file looks completely different than anything on the video so I am also not sure where to put the line I need to insert - it looks like this now:

    <?php include('templates/start.php'); ?>
    
    <!-- container START -->
    <div id="container">
    
    <?php include('templates/header.php'); ?>
    
    <!-- content START -->
    <div id="content">
    
    	<!-- main START -->
    	<div id="main">
    <div id="header" onclick="location.href='http://www.zebradomain.com/';" style="cursor: pointer;" title="home"></div>

    Any ideas?

  4. abovegrnd
    Member
    Posted 4 years ago #

    Ok, if that is your header.php, here is what it needs to look like:

    <?php include('templates/start.php'); ?>
    
    <!-- container START -->
    <div id="container">
    <div id="header" onclick="location.href='http://www.zebradomain.com/';" style="cursor: pointer;" title="home"></div>
    
    <!-- content START -->
    <div id="content">
    
    	<!-- main START -->
    	<div id="main">
  5. iddo12
    Member
    Posted 4 years ago #

    Hi abovegrnd,
    Well I changed it just the way you said - it did fix the dual header but now I am missing the entire search bar (with the home page and sections etc.).

    Ideas?

  6. abovegrnd
    Member
    Posted 4 years ago #

    iddo, is that code in your header.php? or your index.php?

  7. iddo12
    Member
    Posted 4 years ago #

    header.php

    is that o.k?

  8. abovegrnd
    Member
    Posted 4 years ago #

    That's fine, I'm just really confused as to how your website desgin functions. What is in the top portion of your index.php?

  9. iddo12
    Member
    Posted 4 years ago #

    I am a newbie so maybe everything is massed up - here is my entire index.php:

    <?php get_header(); ?>
    <?php $options = get_option('inove_options'); ?>
    
    <?php if ($options['notice'] &amp;&amp; $options['notice_content']) : ?>
    	<div class="post" id="notice">
    		<div class="content">
    			<?php echo($options['notice_content']); ?>
    			<div class="fixed"></div>
    		</div>
    	</div>
    <?php endif; ?>
    
    <?php if (have_posts()) : ?>
    	<?php while (have_posts()) : the_post(); update_post_caches($posts); ?>
    		<div class="post" id="post-<?php the_ID(); ?>">
    			<h2><a class="title" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    			<div class="info">
    				<span class="date"><?php the_time(__('F jS, Y', 'inove')) ?></span>
    				<div class="act">
    					<span class="comments"><?php comments_popup_link(__('No comments', 'inove'), __('1 comment', 'inove'), __('% comments', 'inove')); ?></span>
    					<?php edit_post_link(__('Edit', 'inove'), '<span class="editpost">', '</span>'); ?>
    					<div class="fixed"></div>
    				</div>
    				<div class="fixed"></div>
    			</div>
    			<div class="content">
    				<?php the_content(__('Read more...', 'inove')); ?>
    				<div class="fixed"></div>
    			</div>
    			<div class="under">
    				<?php if ($options['author']) : ?><span class="author"><?php _e('Author: ', 'inove'); ?></span><span><?php the_author_posts_link(); ?></span><?php endif; ?>
    				<?php if ($options['categories']) : ?><span class="categories"><?php _e('Categories: ', 'inove'); ?></span><span><?php the_category(', '); ?></span><?php endif; ?>
    				<?php if ($options['tags']) : ?><span class="tags"><?php _e('Tags: ', 'inove'); ?></span><span><?php the_tags('', ', ', ''); ?></span><?php endif; ?>
    			</div>
    		</div>
    	<?php endwhile; ?>
    
    <?php else : ?>
    	<div class="errorbox">
    		<?php _e('Sorry, no posts matched your criteria.', 'inove'); ?>
    	</div>
    <?php endif; ?>
    
    <div id="pagenavi">
    	<?php if(function_exists('wp_pagenavi')) : ?>
    		<?php wp_pagenavi() ?>
    	<?php else : ?>
    		<span class="newer"><?php previous_posts_link(__('Newer Entries', 'inove')); ?></span>
    		<span class="older"><?php next_posts_link(__('Older Entries', 'inove')); ?></span>
    	<?php endif; ?>
    	<div class="fixed"></div>
    </div>
    
    <?php get_footer(); ?>
  10. abovegrnd
    Member
    Posted 4 years ago #

    ok well lets try this. I'm not all too familiar with this either, but I've been able to tweak a lot of things in my site. The problem that I am having is that I don't see where your code is pulling the image file for your banner? Maybe you know where that's coming from, because from the code I can't tell exactly how it is structured.

    Try this and maybe we can work through how it works...

    <?php include('templates/start.php'); ?>
    
    <!-- container START -->
    <div id="container">
    <div onclick="location.href='http://www.zebradomain.com/';" style="cursor: pointer;" title="home"><?php include('templates/header.php'); ?>
    </div>
    
    <!-- content START -->
    <div id="content">
    
    	<!-- main START -->
    	<div id="main">
  11. iddo12
    Member
    Posted 4 years ago #

  12. iddo12
    Member
    Posted 4 years ago #

    sorry for linking the two sntences this isn't exactly WYSIWYG.
    This is the site.

  13. abovegrnd
    Member
    Posted 4 years ago #

    Glad I could help you out. Get ahold of me if you need any more help. I learn best by DOING and HELPING others. http://www.abovegroundmagazine.com has my contact info :)

  14. iddo12
    Member
    Posted 4 years ago #

    Thank you - I will do that :)

Topic Closed

This topic has been closed to new replies.

About this Topic