This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const UI_NAME = 'Default Size'; | |
const HEADING_VALUES = [ | |
{ text: UI_NAME, value: '' }, | |
{ text: 'H1 Size', value: 'h1' }, | |
{ text: 'H2 Size', value: 'h2' }, | |
{ text: 'H3 Size', value: 'h3' }, | |
{ text: 'H4 Size', value: 'h4' }, | |
{ text: 'H5 Size', value: 'h5' }, | |
{ text: 'H6 Size', value: 'h6' }, | |
]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] | |
RewriteRule ^(.*)$ http://%1/$1 [R=301,L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'wp_nav_menu_items', 'add_auth_links', 10 , 2 ); | |
function add_auth_links( $items, $args ) { | |
if ( is_user_logged_in() && $args->theme_location == 'menu-name') { | |
$items .= '<li class=""><a href="/my-account/customer-logout/">Sign Out</a></li>'; | |
} | |
elseif ( !is_user_logged_in() && $args->theme_location == 'menu-name') { | |
$items .= '<li class="login-button"><a href="/my-account/">Sign In/Sign Up</a></li>'; | |
} | |
return $items; | |
} |