Jump to content

Need help changing code in index.php


Yowie

Recommended Posts

Hai, there I am a newbie in PHP/HTML. I have some experience but not enough to change all this code by myself.

I want to change the position of my site logo to the center. 

 

Here are the code:

 

<div class="row">
<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12">
    <div id="logo">
  <a href="<?php echo $this->params->get('logo_link')?>">
      <img style="width:<?php echo $this->params->get('logo_width')?>px; height:<?php echo $this->params->get('logo_height')?>px; " src="<?php echo $this->params->get('logo_file')?>" alt="Logo" />
  </a>                     
    </div>
</div>
 

Thanks in advance.

 

Best regards,

Joey

Link to comment
Share on other sites

 


I have some experience but not enough to change all this code by myself.

 

If that's the case, then you probably shouldn't be dabbling with it: apart from the fact that that isn't where your problem lies. As you can see from the code, it's [unnecessarily] difficult to read and if you don't understand what's going on - leave well alone, .

 

You have several classes interfering with the layout and tracking them down is where you need to focus your attention as this will be how you can centre your logo.

Link to comment
Share on other sites

You apparently have a Class defined that manages to display your logos (and other things?).  Seems like kind of limited purpose for an entire Class.  But since you have it, shouldn't there already be some kind of positioning logic built into that Class?  Did you write this code/class?  If so you should step back and get a better handle on classes.

Link to comment
Share on other sites

You apparently have a Class defined that manages to display your logos (and other things?).  Seems like kind of limited purpose for an entire Class.  But since you have it, shouldn't there already be some kind of positioning logic built into that Class?  Did you write this code/class?  If so you should step back and get a better handle on classes.

No, I haven't written this code. I just want to change the position of the logo on my site. I have already as the template builder, but there say I have to pay them to change it for me if I don't understand html/php. I just want to learn how to do it.

Link to comment
Share on other sites

You apparently have a Class defined that manages to display your logos (and other things?).  Seems like kind of limited purpose for an entire Class.  But since you have it, shouldn't there already be some kind of positioning logic built into that Class?  Did you write this code/class?  If so you should step back and get a better handle on classes.

No there are not. I have asked the template company to help but there says I can pay them to do it for me. I need to learn how I can change it by myself. 

Link to comment
Share on other sites

Joey,

 

It's not a case of being smug, evasive, clever, belittling or any of the other things you might think is going on, the facts are that you have not read the rules for posting, don't seem to have made much effort in resolving the problem for yourself and offered a few lines of code which is about as much use as showing a picture of a kipper.

 

You've stated that you want to learn how to do it, which is great and commendable, what have you done to achieve this?

Link to comment
Share on other sites

Well thank you all for the help and comment I have been watching a lots youtube vids about bootstrap and I did some change in the code by myself. I not that I did nothing to change it. I simply do not have the time now to go and spent hours trying to fix this problem. But thanks anyway for all the help I will find a way the fix this. 

Link to comment
Share on other sites

Well thank you all for the help and comment I have been watching a lots youtube vids about bootstrap and I did some change in the code by myself. I not that I did nothing to change it. I simply do not have the time now to go and spent hours trying to fix this problem. But thanks anyway for all the help I will find a way the fix this

This is what I have changed now logo is center (<div class="col-lg-4 col-lg-offset-4">). so learn something new but just need to be patience!! Have a good one thank and ciao

Link to comment
Share on other sites

Joey,

 

It's not a case of being smug, evasive, clever, belittling or any of the other things you might think is going on, the facts are that you have not read the rules for posting, don't seem to have made much effort in resolving the problem for yourself and offered a few lines of code which is about as much use as showing a picture of a kipper.

 

You've stated that you want to learn how to do it, which is great and commendable, what have you done to achieve this?

This is what I have changed now and the logo is center (<div class="col-lg-4 col-lg-offset-4">). so learn something new but just need to be patience!! Have a good one thank and ciao

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.