0
Welcome Guest! Login
0 items Join Now

Re: Header does not print

    • marija's Avatar
    • marija
    • Newbie
    • Posts: 6
    • Thanks: 0

    Re: Header does not print

    Posted 17 years 9 months ago
    • Hi! I built a site using the Elixir template.

      When I print any page from the site, the header / menu images do not print.

      Any suggestions?
    • GollumX's Avatar
    • GollumX
    • Elite Rocketeer
    • Posts: 2817
    • Thanks: 0

    Re: Re: Header does not print

    Posted 17 years 9 months ago
    • You probably have to create a new css file called print.css.... then insert a reference to it in your index.php file:
      <link rel="stylesheet" href="http://www.yourdomain.com/templates/<?php echo $mainframe->getTemplate(); ?>/css/print.css" type="text/css" media="print" />
      In this css file, you need to specify that all the elements that make up the logo.. ID's and Classes, must be visible.
    • Say no to Internet Explorer 6.
      twitter.com/mark_up
    • marija's Avatar
    • marija
    • Newbie
    • Posts: 6
    • Thanks: 0

    Re: Re: Header does not print

    Posted 17 years 9 months ago
    • Thanks for the info!

      I added the script to the index.php file to call the print.css file which contains the header images, but I had no luck.

      Any suggestions?

      This is the code in the index.php file (yourdomain was replaced by the actual domain name):
      <link rel="stylesheet" href=" www.yourdomain.com/templates/ <?php echo $mainframe->getTemplate(); ?>/css/print.css" type="text/css" media="print" />

      Here's my print.css:
      #header {
      height: 160px;
      overflow: visible;
      background: #000 url(../images/hdr-bg.jpg) repeat-x;
      }

      #logo {
      background-image: url(../images/logo.png);
      background-repeat: no-repeat;
      }

      #menu_divider {
      background: url(../images/hdr-shadow.jpg) 0 0 repeat-x;
      }

      #nav li.active_menu {
      background: url(../images/style1/tabs_active_l.png) 0 0 no-repeat;
      }

      #nav li.active_menu a:link,
      #nav li.active_menu a:visited,
      #nav li.active_menu a:hover {
      background: url(../images/style1/tabs_active_r.png) 100% 0 no-repeat;
      color: #000000;
      font-weight: bold;
      }


      Thanks for the help!! ;D
    • GollumX's Avatar
    • GollumX
    • Elite Rocketeer
    • Posts: 2817
    • Thanks: 0

    Re: Re: Header does not print

    Posted 17 years 9 months ago
    • hard to say. i've never actually tested this. joomla has it's own print css... maybe that one overrides this. i'm sorry i don't have time to look for the joomla one or test it myself. could you please ask at the joomla.org forums.
    • Say no to Internet Explorer 6.
      twitter.com/mark_up
    • marija's Avatar
    • marija
    • Newbie
    • Posts: 6
    • Thanks: 0

    Re: Re: Header does not print

    Posted 17 years 9 months ago
    • Sure thing. Thanks for your help!
  • Re: Re: Header does not print

    Posted 17 years 9 months ago
    • Did you activate printing background images in IE ?
    • I use simplix, does this mean that I'm a simple guy ? :)
    • marija's Avatar
    • marija
    • Newbie
    • Posts: 6
    • Thanks: 0

    Re: Re: Header does not print

    Posted 17 years 8 months ago
    • Well, my client wants the background to print regardless of whether background printing is activated.

      I suspect I've didn't properly implement the code provided above.

      It's always the little things that cause a big headache :-\
  • Re: Re: Header does not print

    Posted 17 years 8 months ago
    • marija's Avatar
    • marija
    • Newbie
    • Posts: 6
    • Thanks: 0

    Re: Re: Header does not print

    Posted 17 years 8 months ago
    • Cool!! I'm going to give it a whirl. Fingers crossed! :D

Time to create page: 0.062 seconds