I need some direction please as a menu item is not linked and I need some basic support on formatting Jewellery Information.
www.redraglyn.com
I have tried to fix the first issue myself by...
I added into the menu a new item REGISTER by editing the menu.twig
<div class="static-menu">
<ul id="static-menu">
<li><a href="{{ home }}">{{ name }}</a></li>
<li><a href="{{ login }}">{{ text_login }}</a></li>
<li><a href="{{ register }}">{{ text_register }}</a></li>
<li><a href="{{ contact }}">{{ text_contact }}</a></li>
</ul>
</div>
I added into menu.php
$_['text_register'] = 'Register';
But, unlike the other menu items, the Register is not linked .
May someone please advise me what file/s I need to edit
As for the formatting, I wish the Jewellery Information to look like/match the Information section in the footer. I presume this is pretty basic for you guys, but as the list is using a Font Awesome as a bullet, I can't get it right and would appreciate being shown how to do this so i know how for the future. I used the testimonial html content as kind of a template as I needed the box/heading to look the same/match.
Currently, it looks like this...
<div class="testimonial-cms">
<div class="testimonials" id="testimonial">
<div class="box-heading">Jewellery Information</div>
<div class="homepage-testimonial-inner box-content">
<div class="testimonial_inner">
<div class="homepage-testimonials-inner products block_content" align="left">
<ul class="list-unstyled">
<li>About Our Silver</li>
<li>Silver Care and Cleaning</li>
<li>Ring Size Guide</li></ul>
</div>
</div></div></div></div>
Thank you and I look forward to hearing and learning from you.
Brontè :-)
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
LE. Is weird how login work and register not.
Check errors logs to see if tell something about register..from menu...not definited or...something else.
Theme is not free to test myself.
For information on left, try to use footer code
Code: Select all
<div class="row">
{% if informations %}
<div class="col-sm-3">
<h5>{{ text_information }}</h5>
<ul class="list-unstyled">
{% for information in informations %}
<li><a href="{{ information.href }}">{{ information.title }}</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
If you already have this in your menu.twig template and have defined the language for text_register.
Code: Select all
<li><a href="{{ register }}">{{ text_register }}</a></li>
catalog/controller/common/menu.php
find
Code: Select all
$data['categories'] = array();
Code: Select all
$data['register'] = $this->url->link('account/register', '', true);
$data['categories'] = array();
This is a custom theme so really only the theme developer can provide insight.
Untested, Backup, try at your own risk.
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
Thank you so much!!
Now on to the formatting issue :-) and then hopefully i can get moving.
I tried to edit this (see below - I think this is what formats the information list in the footer) and then add it in to the testimonial (I used that as a kinda template as I needed the box/heading to look the same/match) part in the stylesheet but it totally messed up other things, so I guess i need to format it in the html content/twig (see code in first post)
Code: Select all
.col-sm-3.column ul.list-unstyled li a::before{ font-family:"FontAwesome"; content:"\f0da"; padding-right:12px; color:#ababab;}
.col-sm-3.column ul.list-unstyled li a:hover::before{ color:#808080;}
Code: Select all
<div class="testimonial-cms">
<div class="testimonials" id="testimonial">
<div class="box-heading">Jewellery Information</div>
<div class="homepage-testimonial-inner box-content">
<div class="testimonial_inner">
{% if informations %}
<div class="homepage-testimonials-inner products block_content" align="left">
<ul class="list-unstyled">
{% for information in informations %}
<li><a href="{{ information.href }}">{{ information.title }}</a></li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
</div>
</div>
</div>
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Code: Select all
$this->load->model('catalog/information');
$data['informations'] = array();
foreach ($this->model_catalog_information->getInformations() as $result) {
if ($result['bottom']) {
$data['informations'][] = array(
'title' => $result['title'],
'href' => $this->url->link('information/information', 'information_id=' . $result['information_id'])
);
}
}
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
What exactly are you trying to do? Remove the arrows from footer list?bronts wrote: ↑Sun May 20, 2018 7:11 amCode: Select all
.col-sm-3.column ul.list-unstyled li a::before{ font-family:"FontAwesome"; content:"\f0da"; padding-right:12px; color:#ababab;} .col-sm-3.column ul.list-unstyled li a:hover::before{ color:#808080;}
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
As I am a newbie, I managed to get the box and heading the same as the testimonials so it matches, now i just need the list to look the same as the one in the footer.
To get the jewellery information box to look the same, i took some code from the testimonial html content and it currently, it looks like this...
Code: Select all
<div class="testimonial-cms">
<div class="testimonials" id="testimonial">
<div class="box-heading">Jewellery Information</div>
<div class="homepage-testimonial-inner box-content">
<div class="testimonial_inner">
<div class="homepage-testimonials-inner products block_content" align="left">
<ul class="list-unstyled">
<li>About Our Silver</li>
<li>Silver Care and Cleaning</li>
<li>Ring Size Guide</li></ul>
</div>
</div></div></div></div>
Code: Select all
[ul.list-unstyled li a::before{ font-family:"FontAwesome"; content:"\f0da"; padding-right:12px; color:#ababab;}
.col-sm-3.column ul.list-unstyled li a:hover::before{ color:#808080;}
xxvirusxx added in the font awesome bullets and I edited the html contents to...
Code: Select all
<div class="left-sidebar-cms">
<div class="box-heading">Jewellery Information</div>
<div class="testimonial_inner" style="border: 2px solid #efefef;
border-top: none padding: 30px 15px 15px; background: #fff;">
<div class="left-sidebar">
<ul class="list-unstyled" style="padding: 30px 15px 15px">
<li><a href="#">About Our Silver</a></li>
<li><a href="#">Silver Care and Cleaning</a></li>
<li><a href="#">Ring Size Guide</a></li>
</ul>
</div>
</div>
</div>
Thank you everyone for your help and advice.
Code: Select all
.left-sidebar ul.list-unstyled li a::before{ font-family:"FontAwesome"; content:"\f0da"; padding:5px 12px 10px; line-height:22px; color:#ababab;}
.left-sidebar-cms {
float: left;
/*text-align: center;*/
width: 100%;
margin-bottom:24px;
}
.left-sidebar-cms .box-heading {
background: #e4e4e4 none repeat scroll 0 0;
padding: 11px 13px;
font-size: 15px;
color: #242424;
font-weight:700;
line-height:18px;
text-transform:uppercase;
text-align:left;
}
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Users browsing this forum: No registered users and 154 guests