Yowie Posted September 29, 2017 Share Posted September 29, 2017 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 Quote Link to comment https://forums.phpfreaks.com/topic/305156-need-help-changing-code-in-indexphp/ Share on other sites More sharing options...
archive Posted September 29, 2017 Share Posted September 29, 2017 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. Quote Link to comment https://forums.phpfreaks.com/topic/305156-need-help-changing-code-in-indexphp/#findComment-1552129 Share on other sites More sharing options...
ginerjm Posted September 29, 2017 Share Posted September 29, 2017 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. Quote Link to comment https://forums.phpfreaks.com/topic/305156-need-help-changing-code-in-indexphp/#findComment-1552136 Share on other sites More sharing options...
Yowie Posted September 29, 2017 Author Share Posted September 29, 2017 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. Quote Link to comment https://forums.phpfreaks.com/topic/305156-need-help-changing-code-in-indexphp/#findComment-1552147 Share on other sites More sharing options...
Yowie Posted September 29, 2017 Author Share Posted September 29, 2017 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. Quote Link to comment https://forums.phpfreaks.com/topic/305156-need-help-changing-code-in-indexphp/#findComment-1552148 Share on other sites More sharing options...
Yowie Posted September 29, 2017 Author Share Posted September 29, 2017 This is what there told me: You need move this "div" to any other place,RegardsAndrewOrdaSoft team Quote Link to comment https://forums.phpfreaks.com/topic/305156-need-help-changing-code-in-indexphp/#findComment-1552149 Share on other sites More sharing options...
benanamen Posted September 29, 2017 Share Posted September 29, 2017 Since you are using Bootstrap you can just use the column offset class to move it over. Quote Link to comment https://forums.phpfreaks.com/topic/305156-need-help-changing-code-in-indexphp/#findComment-1552151 Share on other sites More sharing options...
Yowie Posted September 30, 2017 Author Share Posted September 30, 2017 Since you are using Bootstrap you can just use the column offset class to move it over. Thanks but I don't know how to do this that is why I am asking for help. Quote Link to comment https://forums.phpfreaks.com/topic/305156-need-help-changing-code-in-indexphp/#findComment-1552156 Share on other sites More sharing options...
archive Posted September 30, 2017 Share Posted September 30, 2017 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? Quote Link to comment https://forums.phpfreaks.com/topic/305156-need-help-changing-code-in-indexphp/#findComment-1552166 Share on other sites More sharing options...
benanamen Posted September 30, 2017 Share Posted September 30, 2017 I pointed you in the right direction. Did it occur to you to RTFM? Quote Link to comment https://forums.phpfreaks.com/topic/305156-need-help-changing-code-in-indexphp/#findComment-1552169 Share on other sites More sharing options...
Yowie Posted September 30, 2017 Author Share Posted September 30, 2017 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. Quote Link to comment https://forums.phpfreaks.com/topic/305156-need-help-changing-code-in-indexphp/#findComment-1552174 Share on other sites More sharing options...
Yowie Posted September 30, 2017 Author Share Posted September 30, 2017 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 Quote Link to comment https://forums.phpfreaks.com/topic/305156-need-help-changing-code-in-indexphp/#findComment-1552176 Share on other sites More sharing options...
Yowie Posted September 30, 2017 Author Share Posted September 30, 2017 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 Quote Link to comment https://forums.phpfreaks.com/topic/305156-need-help-changing-code-in-indexphp/#findComment-1552177 Share on other sites More sharing options...
benanamen Posted September 30, 2017 Share Posted September 30, 2017 See, wasn't that a lot better you learning it on your own then having us spoon feed it to you? Quote Link to comment https://forums.phpfreaks.com/topic/305156-need-help-changing-code-in-indexphp/#findComment-1552178 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.