User Tools

Site Tools


components-depending-on-the_page

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
components-depending-on-the_page [2013/04/08 23:44]
Timbow [A System for Different Components on Different Pages]
components-depending-on-the_page [2014/02/05 20:48]
Timbow [A System for Different Components on Different Pages]
Line 13: Line 13:
  
  
-===== Exluding ​components ===== +===== Excluding ​components ===== 
-If you would like to exclude a component from a page you could do that by **replacing** "​**==**"​ with "​**!=**"​ in the code above.+If you would like to exclude a component from a page you could do that by replacing "​**==**"​ with "​**!=**"​ in the code above.
  
 =====A System for Different Components on Different Pages===== =====A System for Different Components on Different Pages=====
  
-The Components might contain a header image, sidebar content, tagline text, anything. If you only want one page to be different it would be simplest to just make a duplicate page template, but if you want them different on each of several pages here is how.+The Components might contain a header image, sidebar content, tagline text, anything. If you only want one page to be different it might be simplest to just make a duplicate page template, but if you want them different on each of several pages here is how.
  
-The following text needs to be in a functions.php file in your theme:+The following text needs to be in a functions.php file in your theme folder:
 <​file><?​php <​file><?​php
 if (!function_exists('​component_exists'​)) { if (!function_exists('​component_exists'​)) {
Line 54: Line 54:
  
 ======Links====== ======Links======
 +Back to the GetSimple Wiki [[:​start|Contents Page]]
 ===How to Have Different sidebars=== ===How to Have Different sidebars===
 [[http://​mvlcek.bplaced.net/​how-to/​sidebars/​]] [[http://​mvlcek.bplaced.net/​how-to/​sidebars/​]]
components-depending-on-the_page.txt · Last modified: 2017/02/28 00:56 by Timbow