Pagelines welcome billboard

[edit] Please Note

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

Revision as of 16:28, 8 April 2012 by Cais (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 ...

'; $my_billboard .= '
Screenshot
'; $my_billboard .= sprintf( '

%s

' , __( 'Congratulations!', 'my-textdomain' ) ); $my_billboard .= sprintf( "
%s
%s
(%s)
",
     __( 'Welcome to your AWESOME professional website.', 'my-textdomain' ),
     __( 'Here are a few GREAT tips to get you started with your PageLines Theme by me!', 'my-textdomain' ),
     __( 'Note: This intro can be removed below.', 'my-textdomain' )
   );
$my_billboard .= '
';
 return $my_billboard;

}

?>

This is not a significant change but gives you an idea of what even a small tweak can do:

My-billboard-example.png

Source File

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