Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

[SOLVED]Logo Top Margin
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: [SOLVED]Logo Top Margin

[SOLVED]Logo Top Margin 10 years, 9 months ago #17023

  • Bada!
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Karma: 0
I just updated YT Framework through the Template Manager and now my logo is aligned to the top and does not move. There was a 30px margin which I made sure was still there.

#yt_header #yt_logoposition h1 {
margin: 30px 0;

Is there another location I should check?


Attachment sample.gif not found

The topic has been locked.

Re: Logo Top Margin 10 years, 9 months ago #17178

I have the same issue in Sj Financial template.
Last Edit: 10 years, 9 months ago by Ubusir.
The topic has been locked.

Re: Logo Top Margin 10 years, 9 months ago #17184

  • greg_greg
  • OFFLINE
  • Junior Boarder
  • Posts: 20
  • Karma: 1
bootstrap.css search for logo img ( I think line 95) and change or add vertical-allign to middle
The topic has been locked.
The following user(s) said Thank You: Bada!

Re: Logo Top Margin 10 years, 9 months ago #17186

In bootstrap.css I have:

img {
max-width: 100%;
height: auto;
vertical-align: middle;
border: 0;
-ms-interpolation-mode: bicubic;

This doesn't work on logo image, but thanks for your help:)

Best regards
Last Edit: 10 years, 9 months ago by Ubusir.
The topic has been locked.

Re: Logo Top Margin 10 years, 9 months ago #17200

  • greg_greg
  • OFFLINE
  • Junior Boarder
  • Posts: 20
  • Karma: 1
It worked for me. I had the same problem. Try maybe to add padding-top: some-pixels px;
eg padding-top:20px;
The topic has been locked.

Re: Logo Top Margin 10 years, 9 months ago #17231

  • usersmart1
  • OFFLINE
  • Moderator
  • Posts: 1364
  • Karma: 20
Dear sir,

Please go to plugins\system\yt\includes\site\lib
open file yt_template.php, find this code:
<a href="index.php" title="<?php echo $app->getCfg('sitename'); ?>">
<img alt="<?php echo $app->getCfg('sitename'); ?>" src="<?php echo $url; ?>"/>
</a>


change to :

<h1 class="logo">
<a href="index.php" title="<?php echo $app->getCfg('sitename'); ?>">
<img alt="<?php echo $app->getCfg('sitename'); ?>" src="<?php echo $url; ?>"/>
</a>
</h1>


Thanks!
The topic has been locked.
The following user(s) said Thank You: Bada!
  • Page:
  • 1
  • 2
Time to create page: 0.28 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes