- Posts: 146
- Thank you received: 11
No Main Body Section on Frontpage
-
sergiobelcamine
- Topic Author
- Visitor
13 years 10 months ago #5898
by sergiobelcamine
No Main Body Section on Frontpage was created 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!
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.
-
pirossi
Inactive member - Member
Less
More
13 years 10 months ago #5899
by pirossi
Replied by pirossi on topic Re: No Main Body Section on Frontpage
remove this from your template's index.php:
Code:
<div class="content_pad">
<jdoc:include type="message" />
<jdoc:include type="component" />
</div>
Please Log in to join the conversation.
-
sergiobelcamine
- Topic Author
- Visitor
13 years 10 months ago #5900
by sergiobelcamine
Replied by sergiobelcamine on topic Re: No Main Body Section on Frontpage
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!
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.
-
pirossi
Inactive member - Member
Less
More
- Posts: 146
- Thank you received: 11
13 years 10 months ago #5901
by pirossi
Replied by pirossi on topic Re: No Main Body Section on Frontpage
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
with this:
please, show us results.
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
Code:
<div class="content_pad">
<jdoc:include type="message" />
<jdoc:include type="component" />
</div>
Code:
<?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
- Topic Author
- Visitor
13 years 10 months ago #5902
by sergiobelcamine
Replied by sergiobelcamine on topic Re: No Main Body Section on Frontpage
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...!)
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
- Topic Author
- Visitor
13 years 9 months ago #5937
by sergiobelcamine
Replied by sergiobelcamine on topic Re: No Main Body Section on Frontpage
Please Log in to join the conversation.
Time to create page: 0.143 seconds