body data-layout changed from center to left

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Aug 28, 2013 7:36 pm
Reply with quote
Report this post
Hello,

ON the webiste http://www.teeloma.com, just after having enabled GK cache and css cache in the advanced settings of the template, the layout of the website suddenly changed : from "center" to "left" : just before I had <body data-layout="center"> and now it's on "left" so the website was on the left side... I added a line in my css override file to force it to be on the center on the page but I know it's not the proper way.
Do you have an idea why it's automatically on "left" after activating these caches ? Maybe I've done something wrong

Thanks in advance !

Snadra
User avatar
Senior Boarder

GK User
Wed Aug 28, 2013 7:49 pm
Reply with quote
Report this post
I am not sure if this is caused by the cache settings. In certain templates we had a template setting for body positioning which was removed in template setting but code remained in template file so I believe you are not using latest version.
Following is what is happening for body tag.
Code: Select all
data-layout="<?php echo $this->API->get('layout_position', 'left'); ?>"

Because there is no setting it is defaulting to left.
Code: Select all
data-layout="left";

You can remove following code from template file.

File: template/gk_storebox/layouts/default.php
Line: 68
Remove following part of the code.
Code: Select all
data-layout="<?php echo $this->API->get('layout_position', 'left'); ?>"


Or replace with below.

Code: Select all
<body<?php echo $tpl_page_suffix; ?><?php if($this->browser->get("tablet") == true) echo ' data-tablet="true"'; ?><?php if($this->browser->get("mobile") == true) echo ' data-mobile="true"'; ?><?php $this->layout->generateLayoutWidths(); ?><?php if($this->API->modules('cart')) echo ' data-cart="true"'; ?>>   


See you around...
User avatar
Platinum Boarder

GK User
Wed Aug 28, 2013 8:16 pm
Reply with quote
Report this post
Hi !

Thank you very much for your prompt reply.

In fact, I made yesterday the update of the template but I missed the update of June...

Thanks for your precious help


Sandra
User avatar
Senior Boarder

GK User
Wed Aug 28, 2013 8:19 pm
Reply with quote
Report this post
No problem at all, see you around...
User avatar
Platinum Boarder

GK User
Wed Aug 28, 2013 9:04 pm
Reply with quote
Report this post
Just to inform you that I made the "June" update and everything is perfect ! Thanks again

Sandra
User avatar
Senior Boarder

GK User
Wed Aug 06, 2014 3:38 pm
Reply with quote
Report this post
hello how are you MAT978
i have read your poste and see you website is nice one
i have question how you have do and rempalce the image and fucnton of cart by Facebook icon in up i need it
if you can the rules and any one gavick team know how help me
tkx
User avatar
Senior Boarder

GK User
Thu Aug 07, 2014 1:34 pm
Reply with quote
Report this post
mben26 wrote:hello how are you MAT978
i have read your poste and see you website is nice one
i have question how you have do and rempalce the image and fucnton of cart by Facebook icon in up i need it
if you can the rules and any one gavick team know how help me
tkx


Hello,

It's easy, you just have to follow the instructions : : https://www.gavick.com/forums/storebox-joomla3/scrolling-crtbtn-28473.html
and indicate your new image in the css line #btnCart > strong

Have a nice day

Sandra
User avatar
Senior Boarder

GK User
Fri Aug 15, 2014 11:38 am
Reply with quote
Report this post
hello sandra how are you
thank yo ufor your response and for the link; i have check it and add the code to
but no result i have problem :

Not Found

The requested URL /gk_storebox/www.yahoo.fr was not found on this server.

i dont know why ? what is the problem ?
best greetings
yours mben26
User avatar
Senior Boarder

GK User
Fri Aug 15, 2014 1:46 pm
Reply with quote
Report this post
Hello,

You should have done womething wrong.
At the end of the js file, you should have that:

Code: Select all
jQuery(document).ready(function() {
    jQuery('#btnCart').click(function(e) {
        e.preventDefault();
        window.location.href = 'http://www.domainname';
    });
});


Of course replace domainname with the url of the social network you want.

Have a nice week-end
User avatar
Senior Boarder

GK User
Fri Aug 15, 2014 6:50 pm
Reply with quote
Report this post
hello sandra how are you ;)
thank you very much for your assist it's ok now fro your code :)
i need your help also if you need for this one :
1- but when clikc on thes icon, a small window pops up before the opening of website
2- i need when clik on this icon the social website open in new window not in same window of my website
thank yo uvery much for second time and all time for your assist Sandra
User avatar
Senior Boarder


cron