Differences

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

Link to this comparison view

Both sides previous revision Previous revision
appwiki:wordpress [2019/05/19 11:41]
ying [Admin Panel Customize]
appwiki:wordpress [2019/07/03 11:08] (current)
ying [Customize Wordpress]
Line 135: Line 135:
   * Go page setting side panel, choose full-width template   * Go page setting side panel, choose full-width template
   * if it doesn'​t have this template, go theme folder, duplicate page.php as full-width.php,​ and remove this code and its div <code php><?​php get_sidebar();​ ?></​code>​   * if it doesn'​t have this template, go theme folder, duplicate page.php as full-width.php,​ and remove this code and its div <code php><?​php get_sidebar();​ ?></​code>​
 +  * to make wordpress recognize that php as template, put this code below the php tag <​code>​
 +/**
 + * Template Name: fullwidth
 + *
 + * @package themename
 + */
 +</​code>​
   * ref: http://​www.wpbeginner.com/​wp-themes/​how-to-remove-the-sidebar-in-wordpress/​   * ref: http://​www.wpbeginner.com/​wp-themes/​how-to-remove-the-sidebar-in-wordpress/​