Section en-front

WordPress: Add a New Widget Area to a WordPress Theme

Written by admin on 21/03/2021
Category:   Backoffice, Front
Tags:   widget, wordpress
If you're familiar with WordPress themes, you know that many themes come with a widgetized sidebar. This means that you can add, remove, and rearrange widgets on your WordPress website using the "Widgets" section of your WordPress dashboard.Having a widgetized sidebar is very useful, but you may also want to widgetize other parts of your WordPress theme. It's quite easy to do, and once your theme is modified, it will be simple for you or the WordPress admini...

WordPress: Override a template when a variable is present in the URL

Written by on 15/05/2014
Category:   Front
Tags:   wordpress
In very rare cases, one might need to override the default template (although it's a bit dirty to do that).In the functions.php file, add the following code: function wpa_overload_template( $template ) { if( isset( $_GET['parameter'] ) ) { $template = locate_template('template-overload.php', false ); } return $template; } add_filter( 'template_include', 'wpa_overload_template' );