Search Form and Social Buttons

HotThemes Logo and Top Menu

To request a forum account, please login here and open support ticket. Only customers with active order(s) can open forum account!

× Discussion about "Mobility" Joomla template.

Topic-icon No Main Body Section on Frontpage

  • sergiobelcamine
  • sergiobelcamine's Avatar Topic Author
  • Visitor
  • Visitor
5 years 10 months ago #5898 by sergiobelcamine
Hi! I just bought the Hot Mobility Template and I love it! So far!

I am customizing it a lot and I would like to not see the body section on the Frontpage. In fact, I removed almost everything in the Frontpage and kept only the TopMenu, Gallery and the advert and the footer section. But, between the Advert and the Footer section, there is the space where articles on Frontpage usually appear. Since there is none, it still displays a transparent black rectangle, empty. I WOULD LIKE TO HAVE THIS SECTION REMOVED so the footer would appeared just underneath the Advert section.

For an exemple, just answer back and I will post a site address where you might better understand what I want!

Tx for your help!

Please Log in to join the conversation.

More
5 years 10 months ago #5899 by pirossi
remove this from your template's index.php:
<div class="content_pad">
 <jdoc:include type="message" />
 <jdoc:include type="component" />
</div>

Please Log in to join the conversation.

  • sergiobelcamine
  • sergiobelcamine's Avatar Topic Author
  • Visitor
  • Visitor
5 years 10 months ago #5900 by sergiobelcamine
Could have been a good solution but I still want the articles to appear on the other pages...! It's just on the Frontpage that I don't want any articles and not the empty transparent main body rectangle either!

Do you have another solution? Something like an "if" condition in the index.php file? Something like if there is no content to publish, don't draw the main body rectangle etc?

Tx again!

Please Log in to join the conversation.

More
5 years 10 months ago #5901 by pirossi
Do this and then show me how it looks, post the URL:

1> go to joomla administrator side
2> then navigate to menu-->main menu [ Menu Item Manager :[mainmenu] ]
3> click to Home ( i.e. your default menu item )[ Menu Item: [ Edit ] ]
4> now click on change type [ Change Menu Item ]
5> select Internel link-->Articles -->Front Page -->Front Page Blog Layout
6> Apply & save
7> now go to template's index.php and replace
<div class="content_pad">
  <jdoc:include type="message" />
  <jdoc:include type="component" />
</div>
with this:
<?php  if($_GET['view'] !== 'frontpage' ) :?>
<div class="content_pad">
  <jdoc:include type="message" />
  <jdoc:include type="component" />
</div>
<?php endif;?>

please, show us results.

Please Log in to join the conversation.

  • sergiobelcamine
  • sergiobelcamine's Avatar Topic Author
  • Visitor
  • Visitor
5 years 10 months ago #5902 by sergiobelcamine
It worked at first but then, the search pages and other pages didn't work properly... :(

Maybe there is another option to fix this. Here's what I really want to acheive. I want to keep being able to change my background color in the template edition from joomla admin app. Like it is meant to be and like it is working perfectly fine right now.

But, when I change this color, it affects all pages bodies, even the Frontpage one. But on the Frontpage body, I would like this color to just be transparent.

So what would be very nice is finding a code to add in the index.php file where it fixes the background of the main body to transparent when the content to display comes from the Frontpage. Is this feasable?

Sorry for my French accent in my writing...!)

Please Log in to join the conversation.

  • sergiobelcamine
  • sergiobelcamine's Avatar Topic Author
  • Visitor
  • Visitor
5 years 10 months ago #5937 by sergiobelcamine
Ooops! Here's the site adresse :

www.dev.sergebeauchemin.com

Please Log in to join the conversation.

Time to create page: 0.123 seconds

Links, Partners and Social Media