Pagelines welcome billboard

[edit] Please Note

These docs are now deprecated, we have a new Support area located here

(Difference between revisions)
(Examples)
(Examples)
Line 21: Line 21:
 
This would then transform the top of the theme Welcome page into something like this:
 
This would then transform the top of the theme Welcome page into something like this:
 
[[File:PageLines-Welcome-Billboard-blank.png|center]]
 
[[File:PageLines-Welcome-Billboard-blank.png|center]]
 +
Well, that's rather boring ... but we can fix that rolling our own Welcome Billboard code ...
 +
 +
<syntaxhighlight><?php
 +
function my_pagelines_welcome_billboard(){
 +
  /** Let's borrow some code ... */
 +
}
 +
?></syntaxhighlight>
  
 
== Source File ==
 
== Source File ==

Revision as of 20:20, 4 April 2012

Filter

pagelines_welcome_billboard can be used to modify the content at the top of the theme Welcome page produced by the get_welcome_billboard function.

Usage

NB: my_pagelines_welcome_billboard is used only as an example, a more appropriate function name should be used in production code.

Examples

The default look of the theme Welcome page is very similar to the following:

PageLines-Welcome-Billboard-default.png

If you wanted to remove that altogether then you could simply add the following to your (Child-Theme's) functions.php file:

This would then transform the top of the theme Welcome page into something like this:

PageLines-Welcome-Billboard-blank.png

Well, that's rather boring ... but we can fix that rolling our own Welcome Billboard code ...

Source File

pagelines_welcome_billboard is defined in get_welcome_billboard() which is located in admin/class.welcome.php