How to use the template as a secondary

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
Mon Jan 12, 2015 3:20 pm
Reply with quote
Report this post
Hi,
I'm trying to use the template Simplicity as template secondary (the primary is John).
I created a menu associated with the template.
I visualize correctly the positions of the modules: bottom1, bottom2, bottom3, bottom4, bottom5, bottom6
but I have difficulty with the header and mainbody, which apparently you can not assign some class.
In particular, the header does not display the background image and the white color of the lyrics. Furthermore, the alignment is not there.
While instead of the mainbody are displayed featured articles.
The site is not in production and I can not provide a link.
Best regards.
Gioacchino
User avatar
Expert Boarder

GK User
Mon Jan 12, 2015 4:24 pm
Reply with quote
Report this post
You need to add main body class suffixes to that "custom page".
User avatar
Moderator

GK User
Mon Jan 12, 2015 6:31 pm
Reply with quote
Report this post
Cyberek wrote:You need to add main body class suffixes to that "custom page".

Hi,
as regards the header I solved by setting Suffixes for pages in Features settings. (867 = imageBg).
But I do not understand how to deal with mainbody.
What are the classes for mainbody?
Best regards.
Gioacchino
User avatar
Expert Boarder

GK User
Tue Jan 13, 2015 6:17 pm
Reply with quote
Report this post
Could you please post an url to your site and to subsite which should behave like simplicity homepage?
User avatar
Moderator

GK User
Tue Jan 13, 2015 7:02 pm
Reply with quote
Report this post
Cyberek wrote:Could you please post an url to your site and to subsite which should behave like simplicity homepage?

The site is not in production and I can not provide a link.
User avatar
Expert Boarder

GK User
Tue Jan 13, 2015 7:40 pm
Reply with quote
Report this post
Without access to a live site I can't help.
Perhaps you could post it live somewhere for the time being?
User avatar
Moderator

GK User
Wed Jan 14, 2015 9:48 am
Reply with quote
Report this post
Cyberek wrote:Without access to a live site I can't help.
Perhaps you could post it live somewhere for the time being?

Hi,
You can see a demo site @ http://dev.gioacchinocipriano.it/realizza-il-tuo-sito-web.html
Best Regards
User avatar
Expert Boarder

GK User
Fri Jan 16, 2015 5:19 pm
Reply with quote
Report this post
Could you please create a screenshot and mark problematic areas on it? Simple before/after would be very helpfull.
User avatar
Moderator

GK User
Fri Jan 16, 2015 6:22 pm
Reply with quote
Report this post
Cyberek wrote:Could you please create a screenshot and mark problematic areas on it? Simple before/after would be very helpfull.

Hi,
this is the incorrect display, showing instead of the module in the mainbody position, the articles featured
error_mainbody.jpg

however this should be the correct view, showing the module in place mainbody
Ok_mainbody.jpg


T.Y.
User avatar
Expert Boarder

GK User
Sun Jan 18, 2015 12:07 pm
Reply with quote
Report this post
I would suggest to post an empty custom html module in mainbody position. After that we can think about reducing space it will create.
User avatar
Moderator

GK User
Tue Jan 20, 2015 1:16 pm
Reply with quote
Report this post
Cyberek wrote:I would suggest to post an empty custom html module in mainbody position. After that we can think about reducing space it will create.

Hi,
I have included a custom html module in the mainbody position, but not displayed.
Are always displayed the featured articles.
User avatar
Expert Boarder

GK User
Fri Jan 23, 2015 8:26 am
Reply with quote
Report this post
Please edit:
templates/gk_simplicity/layouts/default.php
and replace:
Code: Select all
               <?php if(($this->layout->isFrontpage() && !$this->API->modules('mainbody')) || !$this->layout->isFrontpage()) : ?>

with:
Code: Select all
               <?php if((!$this->API->modules('mainbody')) : ?>
User avatar
Moderator

GK User
Fri Jan 23, 2015 6:26 pm
Reply with quote
Report this post
[quote="Cyberek"]Please edit:
templates/gk_simplicity/layouts/default.php
and replace:
........
.......
Hi,
:(
Code: Select all
Parse error: syntax error, unexpected ':' in XXXXXXXXXXX\templates\gk_simplicity\layouts\default.php on line 142

but I found a workaround.
Best regards.
User avatar
Expert Boarder

GK User
Mon Jan 26, 2015 4:59 pm
Reply with quote
Report this post
Oh, sorry:
Code: Select all
  <?php if(!$this->API->modules('mainbody')) : ?>

should work fine.
User avatar
Moderator


cron