Posts: 26
Threads: 3
Joined: Sep 2010
Removing internal pages of sidebars, sidebars or different place
on other pages?
Keeping in Home, but removing the other.
Sorry my English is that I use google translator.
Existe algum site com plugins já prontos para o get-simple?
Thanks!
Posts: 15
Threads: 2
Joined: Sep 2010
schluters Wrote:Removing internal pages of sidebars, sidebars or different place
on other pages?
Keeping in Home, but removing the other.
Sorry my English is that I use google translator.
Existe algum site com plugins já prontos para o get-simple?
Thanks!
The last line, if I interpret correctly means "Are there other sites with plugins for get-simple?"
Sorry about the first lines, I can't make out exactly what they mean. Can you paste the message in Portuguese please? Maybe somebody with a better command of Portuguese can help.
Posts: 26
Threads: 3
Joined: Sep 2010
How do I remove the sidebars of the pages inside?
Como removo as barras laterais das paginas internas?
How to leave only the sidebars on the homepage. removing the other pages?
Como deixar as barras laterais somente na homepage. removendo nas outras paginas?
another question: / outra pergunta:
Is there any website with plugins already ready for the get-simple?
Existe algum site com plugins já prontos para o get-simple?
Posts: 972
Threads: 27
Joined: Aug 2009
schluters Wrote:How do I remove the sidebars of the pages inside?
How to leave only the sidebars on the homepage. removing the other pages?
These two questions are the same? ;-)
You can make a copy of template.php (call it template2.php or anything else) and edit the HTML inside it. Remove all the sidebar elements. Then you can choose what template you want to use under “Page Options†when you’re editing a page.
schluters Wrote:Is there any website with plugins already ready for the get-simple?
No, there is no website with only plugins. For now the best place is
the Plugins board on this forum.
Some people are building a plugin website but it’s not done yet.
Posts: 26
Threads: 3
Joined: Sep 2010
thank you. It's something relatively simple.
muito obrigado. É algo relativamente simples.
thank you!
Posts: 3,491
Threads: 106
Joined: Mar 2010
Another way: edit template.php, change this line:
Code:
<?php get_component('sidebar'); ?>
to:
Code:
<?php if (return_page_slug()=='index') { get_component('sidebar'); } ?>
Posts: 972
Threads: 27
Joined: Aug 2009
Carlos: not really. Due to how the default theme works you will still have a visible sidebar box on all pages if you do it that way. It will just be empty for all non-index pages.
Posts: 3,491
Threads: 106
Joined: Mar 2010
Yeah you're right, Zegnåt.
A better solution would be enclosing the entire sidebar div in an if, like:
Code:
<?php if (return_page_slug()=='index') { ?>
<div id="sidebar">
<div class="featured">
<?php get_component('sidebar'); ?>
<div class="clear"></div>
</div>
</div><!-- end div#sidebar -->
<?php } ?>
(Inserted first and last lines)
Anyway, it's not perfect. Something should also be done about the content's fixed width... (at least with GS's default theme)