Post by luzolo » Thu Oct 12, 2017 3:38 am

Hi there, I am pretty new in using opencart 1.5, and I wondering how can I center my logo and remove some items like the footer, and how can I resize my slide picture, so it'll fill up all space left by the footer.

Newbie

Posts

Joined
Thu Oct 12, 2017 3:29 am

Post by luzolo » Thu Oct 12, 2017 10:20 pm

any help ?

Newbie

Posts

Joined
Thu Oct 12, 2017 3:29 am

Post by IP_CAM » Fri Oct 13, 2017 1:17 am

Well, this may not as easy as you expect it to be, you need to understand CSS,
then, you could try to re-align the Theme header.tpl file, codewise, to have the logo,
as you plan, and other 'placements' in a matching order again.
This is the default css style setting for the header logo:

Code: Select all

#header #logo {
	position: absolute;
	top: 25px;
	left: 15px;
}
and this is the Default OC 1.5.6.x Theme header.tpl Section, where it all happen:

Code: Select all

<div id="container">
<div id="header">
  <?php if ($logo) { ?>
  <div id="logo"><a href="<?php echo $home; ?>"><img src="<?php echo $logo; ?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" /></a></div>
  <?php } ?>
  <?php echo $language; ?>
  <?php echo $currency; ?>
  <?php echo $cart; ?>
  <div id="search">
    <div class="button-search"></div>
    <input type="text" name="search" placeholder="<?php echo $text_search; ?>" value="<?php echo $search; ?>" />
  </div>
But if you don't know, what this all means, you better get Dev-Support, OC is all about
generating Income, and a Custom Job like this does usually not come for free, if something takes
more than just a few moments, to be replied to. As I mentioned, OC means business, for eveybody
involved!
And since you did not mention exactly the OC Version you use, and/or even a Custom Theme,
such likely even discourages others from replying at all... :choke:

Good Luck!
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by luzolo » Sun Oct 15, 2017 2:59 am

Sorry Ernie for lack of details, I am using Version 1.5.6.4 and the default template. I am familiar with css style and php, but I am not familiar with .tpl.

I have tried to change both the css style and the template to move my logo in the midle but nothing is working, that why I thought I could get some advices in the forum. I think that why we are in this a forum, to share idea and good practices.

Newbie

Posts

Joined
Thu Oct 12, 2017 3:29 am

Post by IP_CAM » Sun Oct 15, 2017 4:01 am

I think that why we are in this a forum, to share idea and good practices.

well, you better read here about this, to keep me from repeating it once more,
to get a little more familiar with this Place, it's Purpose, and it's Users:
viewtopic.php?f=20&t=189407#p689812
---
But if you are familiar with css style and php, you'll have no problem, to
move your Content in the theme header.tpl File as you like.

And some good information on OC can be found here:
http://forum.opencart.com/viewtopic.php ... 30#p506130

Good Luck, nothing personal, but better take it, as it comes, for free, and with no obligations ! ;)
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 32 guests