Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Different header dimensions

  • Antonio Brocco
  • Antonio Brocco's Avatar Topic Author
  • Offline
  • Junior Member
More
4 years 8 months ago #139244 by Antonio Brocco
Antonio Brocco created the topic: Different header dimensions
Dear Nuevvo,
in my site I have moved the logo in top-left position in the main header. In gome page it's all ok but in other section of my site the mainheader had become too high. How i reduce the dimension of the header only in other section of the site and not in home page?

Thank you very much.

the site is www.marsigliapartners.eu

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

More
4 years 8 months ago #139245 by Krikor Boghossian
Krikor Boghossian replied the topic: Different header dimensions
You can move the logo to the left only in the homepage and leave it in its default position on other views.
<?php if($isFrontpage): ?>
// This will render ONLY in the frontpage
<?php endif; ?>
<?php if(!$isFrontpage): ?>
// This will NOT render in the frontpage
<?php endif; ?>

The logo's code is in then index.php file

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

  • Antonio Brocco
  • Antonio Brocco's Avatar Topic Author
  • Offline
  • Junior Member
More
4 years 8 months ago #139246 by Antonio Brocco
Antonio Brocco replied the topic: Different header dimensions
Krikor thank's for your support but I'm not an expert in php. I can not understand how to implement the code to display the logo in its original position on other pages. I tried but did not succeed.

Could you help me?

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

More
4 years 8 months ago #139247 by Krikor Boghossian
Krikor Boghossian replied the topic: Different header dimensions
Of course.

Locate the logo in index.php
<h1 id="logo">

Then add this snippet
<h1 id="logo" <?php if($isFrontpage): ?>class="margin-logo"<?php endif; ?>>

Remove the margin from your custom.css (from #logo) and add that margin to the new class. eg
.logoArea h1#logo.margin-logo

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

  • Antonio Brocco
  • Antonio Brocco's Avatar Topic Author
  • Offline
  • Junior Member
More
4 years 8 months ago #139248 by Antonio Brocco
Antonio Brocco replied the topic: Different header dimensions
Krikor,
this site is a multilanguage site and your code don't function, don't recognize the homepage in multilanguage. If I set the site not multilanguages your code function.

How I resolve?

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

More
4 years 8 months ago #139249 by Krikor Boghossian
Krikor Boghossian replied the topic: Different header dimensions
You have to check for the menu item id in multilingual sites.

You can find your menu item id from your menu panel.
<h1 id="logo" <?php if( $itemid == 'ID' ||  $itemid == 'ID' ): ?>class="margin-logo"<?php endif; ?>>

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

  • Antonio Brocco
  • Antonio Brocco's Avatar Topic Author
  • Offline
  • Junior Member
More
4 years 8 months ago #139250 by Antonio Brocco
Antonio Brocco replied the topic: Different header dimensions
Krikor,
you are a very genius. Work very very very well!!!!

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

More
4 years 8 months ago #139251 by Krikor Boghossian
Krikor Boghossian replied the topic: Different header dimensions
Thank you Antonio, I 'm glad I could help you

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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


Powered by Kunena Forum