Post by jwreid » Sun Oct 04, 2015 3:46 pm

Would anybody know specifically how to add another logo/image to the header as if you were adding a separate logo/image to the right side of the header. I also need to know how to edit my responsive stylesheet so that the 2 images stack on top of one another in the mobile view.

Attachments

desktop and mobile.jpg

desktop and mobile.jpg (92.12 KiB) Viewed 2343 times


User avatar
Active Member

Posts

Joined
Sun Oct 27, 2013 6:27 pm
Location - Canada

Post by MarketInSG » Sun Oct 11, 2015 10:12 am

if you're using a bootstrap theme, you can consider something like this on the header.tpl file

Code: Select all

<div class="row">
  <div class="col-md-5">{logo here}</div>
  <div class="col-md-5 text-right">{second image here}</div>
</div>
On smaller screens, it will automatically be stacked.


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by jwreid » Sun Oct 11, 2015 10:39 am

I am using Openshop theme. I will see if it works thanks.

User avatar
Active Member

Posts

Joined
Sun Oct 27, 2013 6:27 pm
Location - Canada

Post by jwreid » Sun Oct 11, 2015 5:34 pm

Almost there. This is what i have so far:

<div class="row">
<div class="col-md-5"><img src='image/data/0 Website/Logo Space.png'></div>
<div class="col-md-5 text-right"><img src='image/data/0 Website/Website Logo.png'></div>
</div>

For my first image I created a transparent png in Photoshop so as not to disturb the original logo and for the scecond image I used the logo again (Still working on image I intend to use) instead of the 2nd image going to the second column it gos beneath instead. Any ideas MarketInSG?

Attachments

screenshot.jpg

screenshot.jpg (135.19 KiB) Viewed 2254 times


User avatar
Active Member

Posts

Joined
Sun Oct 27, 2013 6:27 pm
Location - Canada

Post by MarketInSG » Sun Oct 11, 2015 7:50 pm

is your image too huge for the space given? Try inspecting element on a Google Chrome / FireFox browser.

Also, my bad, use col-md-6 instead of 5. There's a total of 12 columns in one row.


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by jwreid » Mon Oct 12, 2015 8:50 am

No matter how small I make the second image it still goes beneath. I am thinking that the shopping cart is in the way even though its not showing at this particular time. I removed currency and the search bar maybe I have not removed them properly. I have attached my header.tpl file if you would like to take a quick peek at it.I would really appreciate it. Otherwise, I will keep editing away until i get the desired result. Thanks

P.S also tried the mod on default header.tpl with same result.

User avatar
Active Member

Posts

Joined
Sun Oct 27, 2013 6:27 pm
Location - Canada

Post by jwreid » Tue Oct 13, 2015 9:00 am

I found a workaround. Going to put the png image as a layer in photoshop on my background. I have to be honest though I did not think adding a second image to my header was that hard to do.

User avatar
Active Member

Posts

Joined
Sun Oct 27, 2013 6:27 pm
Location - Canada
Who is online

Users browsing this forum: No registered users and 9 guests