hide content on the first page

  • milimar
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
10 years 9 months ago #38030 by milimar
Thanks for the answer, but I do not see any difference using your last code. At this home page milimar.info/winery/index.php/en/ you can see just below the slideshow that there is an empty space because I used .sparky_inner .content_sparky{min-height:600px;} and my home page is connected to featured articles which actually do not exist (just as you suggested before). At this link milimar.info/winery/index.php/en/collection you will see that minimal height works well. So the question is: how to eliminate that empty space on the home page? Thanks.

Please Log in to join the conversation.

More
10 years 9 months ago - 10 years 9 months ago #38032 by ivan.milic
Open index.php of template find <body> tag and make sure it looks like this:
Code:
<?php $menu = JSite::getMenu(); ?> <body<?php if ($menu->getActive() == $menu->getDefault()) { echo ' class="sparky_home"'; }else{ echo ' class="sparky_inner"'; } ?>>
Last edit: 10 years 9 months ago by ivan.milic.

Please Log in to join the conversation.

  • milimar
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
10 years 9 months ago #38035 by milimar
It seems like the body tag already looks like that. (att.)

Attachments:

Please Log in to join the conversation.

More
10 years 9 months ago #38047 by ivan.milic
Because you have multilingual site.

You could do this, in menu manager find our IDs of each menu item pointing to home page, then use code like this:
Code:
<?php $menu = JSite::getMenu(); $active = $menu->getActive(); $active_id = $active->id; ?> <body<?php if (in_array($active_id,array(53,89,73)) ) { echo ' class="sparky_home"'; }else{ echo ' class="sparky_inner"'; } ?>>

where 53,89,73 are example values

Please Log in to join the conversation.

  • milimar
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
10 years 9 months ago - 10 years 9 months ago #38235 by milimar
Sorry for the delay...this code is working perfectly, hidden content on the home page and no blank space. Maybe it is a good idea in the next version of Sparky framework,in the template options in the backend, to have an option for hiding content on home page.

I have some more ideas on how to make more perfect your Sparky framework, but I am sure that you have them too, and for sure you are planning to incorporate some new useful features in the next versions of Sparky framework.

I haven't finished testing this framework yet, but in my opinion, it is for sure one of the best templates out-there.

The people around the world can use Sparky free templates which are great, and I hope that everyone who could earn some money using them, will donate money to your firm supporting your work that you are giving us for free!

At the end I would like to thank you for your help!
Last edit: 10 years 9 months ago by milimar.

Please Log in to join the conversation.

Time to create page: 0.085 seconds
Powered by Kunena Forum