Thread: Custom Branding

Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2008
    Posts
    3
    Plugin Contributions
    0

    Idea or Suggestion Custom Branding

    I have my own branded header, logo...etc It is made up of an image and two animated gifs

    I was wondering if editing the branding section of the tpl_header.php file would work
    Code:
    <!--bof-branding display-->
    <div id="logoWrapper">
    <PHP? include '..../custom_brand.php' ?>
    <!--eof-header logo and navigation display-->
    </div>
    Or am I missing something?

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Custom Branding

    No. You are in exactly the right place. Though introducing branding doesn't necessarily require editing this file. Often it can be achieved by changing the elememts that it uses, such as the logo image (controlled by languages/english/header.php) or the background image for the header (controlled by your stylesheet.css file)
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Mar 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: Custom Branding

    Yes, I see what you mean. To be truthful, I am just interested in using the digital downloads section of Zen cart and want to use my own shop front, headers and menus... Also, I have three images in the header two of them animated, That I share with my hobby site

    In the interests of passing on the fruits of my labours:
    Code:
    <!--bof-branding display-->
    <div id="logoWrapper">
         
         <!-- This deletes the header -->
         <!--<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>-->
         
    <!-- My code --> 
    <?php include virtual("/my-site/zen-cart/includes/templates/gloss_black/common/myheader.shtml");?>
     
    <!-- need this next for formatting page but set define tagline to "" in .../english/header.php-->    
    <div id="taglineWrapper">
    
    <!-- The rest does not seem to do much, so don't touch!-->
    <?php
                  if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
                    if ($banner->RecordCount() > 0) {
    ?>
          <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
    <?php
                    }
                  }
    ?>
        </div>
    </div>
    <br class="clearBoth" />
    <!--eof-branding display-->
    You also need to change the css
    Code:
    /* don't want the header_back gif but need the rest */
    #headerWrapper {
          background-color: #000000;
          
          /*background-image: url(../images/header_back.gif);*/
             
    	margin: 0em;
    	padding: 0em;
          }
    /* End */
    This seems to work for me and seems to give me complete control of menus, images and other content of the header.

    Note, you have to use root relative addressing.

    If anybody has any comments, or notices something bad, please let me know.

 

 

Similar Threads

  1. branding a download when it's purchased
    By twmtoni in forum General Questions
    Replies: 2
    Last Post: 19 Aug 2010, 04:19 AM
  2. HTML link for branding logo
    By Genzai in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 May 2009, 01:01 AM
  3. Branding Display
    By bobthemolder in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Nov 2008, 11:10 PM
  4. Zen Branding and logos..
    By starline in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 27 Jul 2007, 11:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg