Post by bronts » Sat May 19, 2018 4:52 pm

Hello from Australia :-)
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è :-)
Last edited by bronts on Sun May 27, 2018 6:24 am, edited 1 time in total.

User avatar
Active Member

Posts

Joined
Sat Jul 14, 2012 12:56 pm
Location - QLD Australia

Post by xxvirusxx » Sat May 19, 2018 6:02 pm

That theme doesn`t have some menu builder module?

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by bronts » Sat May 19, 2018 7:24 pm

Thank you for your reply.
No, there is no module.

User avatar
Active Member

Posts

Joined
Sat Jul 14, 2012 12:56 pm
Location - QLD Australia

Post by xxvirusxx » Sat May 19, 2018 8:03 pm

Try to clear SASS cache and theme cache.

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


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by bronts » Sun May 20, 2018 6:38 am

Thank you for your reply.
Clearing those cashe did not work.
Using that code does not work either sorry.

User avatar
Active Member

Posts

Joined
Sat Jul 14, 2012 12:56 pm
Location - QLD Australia

Post by sw!tch » Sun May 20, 2018 6:56 am

bronts wrote:
Sun May 20, 2018 6:38 am
Thank you for your reply.
Clearing those cashe did not work.
Using that code does not work either sorry.
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>
You can try the below.

catalog/controller/common/menu.php

find

Code: Select all

$data['categories'] = array();
replace with

Code: Select all

$data['register'] = $this->url->link('account/register', '', true);
$data['categories'] = array();
In short, it sounds like you basically need to add the variable for register.

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!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by bronts » Sun May 20, 2018 7:11 am

That worked *happy dance*
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;}

User avatar
Active Member

Posts

Joined
Sat Jul 14, 2012 12:56 pm
Location - QLD Australia

Post by xxvirusxx » Sun May 20, 2018 3:42 pm

Try 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">
{% 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


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by bronts » Sun May 20, 2018 5:54 pm

Thank you for your reply,
Sorry but that fix didn't work either.
It ended up looking like this...
Image

User avatar
Active Member

Posts

Joined
Sat Jul 14, 2012 12:56 pm
Location - QLD Australia

Post by xxvirusxx » Sun May 20, 2018 7:14 pm

Yep...need to add code in controller of theme..on that location.

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


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by sw!tch » Mon May 21, 2018 1:05 am

bronts wrote:
Sun May 20, 2018 7:11 am

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;}
What exactly are you trying to do? Remove the arrows from footer list? ???

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by bronts » Mon May 21, 2018 6:03 am

What I am trying to do is have the actual list that is in the Jewellery Information left sidebar formatted to look like/match the Information list in the footer. (ie: have the font awesome bullets and spacing the same).
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>
To work on the list, I presume i need to add in/edit the code to include this...

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;}
As I don't fully understand what I am doing, my attempts have not been successful, with the majority messing up the actual information section in the footer too (as i presume the code I have in the jewellery section follows the same css rules)

User avatar
Active Member

Posts

Joined
Sat Jul 14, 2012 12:56 pm
Location - QLD Australia

Post by bronts » Sat May 26, 2018 6:12 pm

The formatting issue is now fixed.
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>
Not sure if what I did is correct, but it works.
Thank you everyone for your help and advice.

User avatar
Active Member

Posts

Joined
Sat Jul 14, 2012 12:56 pm
Location - QLD Australia

Post by xxvirusxx » Sat May 26, 2018 8:44 pm

Also I have added this code in css :)

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


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România
Who is online

Users browsing this forum: No registered users and 154 guests