Zen Follower
- Join Date:
- Dec 2006
- Posts:
- 132
- Plugin Contributions:
- 0
Views: 13,271
Zen Follower
Inactive
hmmm.. confusing links on site..took fair time to find actual products..also site using html links not standard zencart..
not sure what you request is now possible..
:dontgetit
Zen Follower
Yeah, I only have two products listed at the moment, that's why you're seeing mostly empty categories. As far as the links go, I'm using Ultimate SEO urls, which produces .html extensions.
What about specifying the category number in the if/then statement, something like:
<?php if ($this_is_category=9) { include('muffins.php'); } else { include('top2.php'); } ?>I'm sure my code isn't correct, but I think you see what I'm thinking.
Thanks.
Inactive
Easiest way is to create different/new/extra stylesheet i.e.
c_9.css
where 9 is category you wish to have different
settings for colours, logo etc
Zen Follower
Could somebody please explain how I would load a different header for one particular page?
Inactive
swamyg1:
Could somebody please explain how I would load a different header for one particular page?
Which page..makes a difference on how to code.
Zen Follower
Hi Misty,
It's actually for my wordpress install on Zencart. I want to load a different header with all of my wordpress pages located in the "/blog" directory. Is it possible?
Inactive
probably possible but not tried it myself so cannot verify...
Zen Follower
misty:
probably possible but not tried it myself so cannot verify...
Any idea of the code I might use to try for a different header in this directory?
New Zenner
I tried using the php if/else statement, but it has broken my site.
Ive copied all the php and markup following :
<?php if (!isset($flag_disable_header) || !$flag_disable_header) { ?>
that line, into two seperate files, top_home.php, and normal_top.php, they are located in /common/ directory.
This has broken my site completely, it only loads a background image :)
Is there something I am missing here? my tpl_header.php looks like the following:
<?php //omitted comments ?> <?php // Display all header alerts via messageStack: if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) { echo htmlspecialchars(urldecode($_GET['error_message'])); } if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) { echo htmlspecialchars($_GET['info_message']); } else { } ?> <!--bof-header logo and navigation display--> <?php if (!isset($flag_disable_header) || !$flag_disable_header) { ?> <?php if($this_is_home_page) { include('home_top.php'); } else{ include('normal_top.php'); } ?>
New Zenner
How about displaying header1 and header2 in main page and displaying only header1 on other pages? I have post a query in a separate thread but there's still no reply. :) Sorry for hi jacking this thread.
New Zenner
<?php if (!isset($flag_disable_header) || !$flag_disable_header) { ?>misty:
top_main.php
is shown on home page only and contains
your flash code
top2.php
is shown on all other pages and contains
normal header code i.e. non flash
add code coloured red to
/includes/templates/namofyourcurrenttemplate/common/ tpl_header.php
as follows
<?php if ($this_is_home_page) { include('top_main.php'); } else { include('top2.php'); } ?>
excellent! thank you!
Tell staff why this post should be reviewed.