Created
February 9, 2017 10:36
-
-
Save sachyya/2d96bb9619bea72b72053f0106fbe200 to your computer and use it in GitHub Desktop.
This code is to show user to go to specific section to configure that section in a theme.
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
<?php | |
if ( current_user_can( 'customize' ) ) { ?> | |
<div class="message"> | |
<p><?php _e( 'There are no pages available to display.', 'textdomain' ); ?></p> | |
<p><?php printf( | |
__( 'These pages can be set in the <a href="%s">customizer</a>.', 'textdomain' ), | |
admin_url( 'customize.php?autofocus[control]=showcase' ) | |
); ?> | |
</p> | |
</div> | |
<?php } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment