× Discussion about "Sportal" Joomla template.

Topic-icon different file format for the header

  • trey-braid
  • trey-braid's Avatar Topic Author
  • Visitor
  • Visitor
7 years 7 months ago #3149 by trey-braid
different file format for the header was created by trey-braid
milos quick question... since the header is hard coded in the index.php

if i change from png to jpg is this the only line that needs to be changed?

<a href="index.php"><img src="<?php echo $template_path ?>/images/logo_<?php if($transparentImage=="white") { echo "black"; }else{ echo "white"; } ?>.png" width="980" height="150" alt="joomla restaurant template" /></a>

to

<a href="index.php"><img src="<?php echo $template_path ?>/images/logo_<?php if($transparentImage=="white") { echo "black"; }else{ echo "white"; } ?>.jpg" width="980" height="150" alt="joomla restaurant template" /></a>

thanks again
trey

Please Log in or Create an account to join the conversation.

  • trey-braid
  • trey-braid's Avatar Topic Author
  • Visitor
  • Visitor
7 years 7 months ago #3150 by trey-braid
Replied by trey-braid on topic different file format for the header
ok idiot here... i made the adjustment and its fine....

what would i need to edit to change the page bg from a png to jpg as well--is this all i would edit in the template.css.php file?

body {
font-size:<?php echo $mainFontSize; ?>px;
color:<?php echo $bodyText; ?>;
<?php if ($backgroundImage!="none") { ?>

background:<?php echo $backgroundColor; ?> url(<?php echo $template_path; ?>/images/bg_<?php echo $backgroundImage; ?>.png) fixed;

<?php }else{ ?>
background:<?php echo $backgroundColor; ?>;
<?php } ?>
}


to:

body {
font-size:<?php echo $mainFontSize; ?>px;
color:<?php echo $bodyText; ?>;
<?php if ($backgroundImage!="none") { ?>

background:<?php echo $backgroundColor; ?> url(<?php echo $template_path; ?>/images/bg_<?php echo $backgroundImage; ?>.jpg) fixed;

<?php }else{ ?>
background:<?php echo $backgroundColor; ?>;
<?php } ?>
}


thanks
trey

Please Log in or Create an account to join the conversation.

More
7 years 7 months ago #3152 by milos
Yes, I think it's all you needed to edit.

Please Log in or Create an account to join the conversation.

Moderators: milos
Time to create page: 0.102 seconds