this peace of code will help you
<?php
if (display_header_text()==true){
echo '<h1>'.get_bloginfo( 'name' ) .'</h1>';
echo '<h2>'.get_bloginfo('description').'</h2>';
} else{
//do something
}
?>
Related Posts:
- Add a dropdown to theme customizer
- Theme Customizer : how to create multiple-level panel
- Allow Shortcode in Theme Customizer
- Editing the custom background CSS
- Is the theme customizer slowing down my site?
- How do I get a parent theme modification from a child theme?
- How to set page template on front using starter content?
- How i can get widgets areas working in customizer?
- How Can I Create a List of Values to Be Iterated Through via WordPress Customization API?
- How to disable automatic colors in the Twenty Twenty theme?
- WordPress not registering Theme Customization Section
- WP_Customize_Color_Control omitting # symbol
- get_option in header.php not returning value from customizer
- Internal error 500 accessing Theme > Customize
- Edit footer via customizer
- Folder name for a pro version of a WordPress.org theme?
- Customizer: save setting/control content to post/page
- Is accessing theme and using customizer GPL distribution?
- How to enqueue javascript for WP Customize options sidebar?
- Customizer – loading settings/controls/sections/panels based on a id/page id
- Theme Customizer not displaying saved values in wp_head (CSS)
- How to set Post meta-box defaults based on the choices made by user in Customizer?
- Alignment Problem [closed]
- Customizer: get_preview_url() inside customize_save_after hook
- Let user to upload multiple time
- How to copy page/post from one theme to another?
- How to change listing type permlink?
- Customizer API Multi Sections in single Panel
- (Parent) theme Is Not Showing In Theme Selection Panel and Therefore Breaks Child Theme
- How do I remove header/page-title image in farvis theme? [closed]
- How to show some of category in wordpress
- Is there a way to create sections under “Colors” panel in the Theme Customizer?
- Correct was to customise theme using get_theme_mod in scripts
- Using Customizer value in an external PHP file inside a theme
- “No Data Received” error in Chrome every time i try to update the theme functions file
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- How to make a multilingual wordpress site to be translated one-to-one without much effort and without using translate?
- How to show associated fields if checkbox is checked in customize widget screen using wp_customize?
- How to add CSS class to custom logo?
- theme path in javascript file
- The proper way to include/require PHP files in WordPress
- How to insert a logo in the header?
- Why doesn’t default WordPress page view use force_balance_tags?
- Customizer Active Callback not working
- How to execute conditional script when on new customize.php (Theme Customize) screen
- What can I hook into after_setup_theme?
- How to use bloginfo( ‘template_directory’ ) in array
- Should I update my _s theme?
- Add social icons in a theme through custom admin menu
- file_get_contents Not allowed in Themes?
- Change setting name in Customizer and keep the data
- How do I remove twentyten without ruining what I did?
- Custom theme not visible in Appearance
- after_setup_theme, Global Variable and Theme Customizer
- Get a setting value conditionally in the Customizer api
- Developing WordPress Theme using CSS framework like Bootstrap
- Theme translation not applying
- Storefront child theme not applying parent theme [closed]
- Override customizer values on a per-menu base
- Theme Inspector “X-Ray”
- Acivate all themes multisite wide automatically
- How to place HTML tags in content from the_content()?
- WordPress Theme Creation [closed]
- Integrate WooCommerce theme with a WordPress theme [closed]
- Automated Footer information
- How do you use WordPress for a website that’s not in a blog format?
- WP Customazation API doesn’t save the default Value
- How to track a users last visited page?
- In a Gallery with limited image posts, how do I not limit images on single post?
- LESS not working in WordPress [closed]
- How to add custom page elements to the WYSIWYG editor?
- Why I obtain different visualization when I run the website on my local machine and on remote server?
- Open portfolio image in light box
- Let visitors show/hide a type of content
- Best practice for implementing a blog page / section in wp_menu_nav()
- Related Post Category Filter
- how to add a badge on product based on filter?
- how to create/register menu items that can be added to menus later
- Why nav_menu_css_class doesn’t work with apply_filters?
- WordPress and Semantic UI
- Theme does not allow shortcodes
- Text widget is placing everything side by side. I want to post it above
- fetch all post from wp multisite network and sort all the post in descending order on the basis of “Created by ” term
- What is an alternative to not using child theme to customize a WordPress theme?
- Menu names not getting translated
- How to generate a rtl.css file for themes?
- Get property of non-object on theme activation
- wp_editor some functionality not working on custom theme
- Update modified Shopify third-party theme [closed]
- Providing updates to your WordPress theme
- One-Page WordPress Template
- Missing hashtag with theme customizer header color
- Customizer_register theme options not saving
- How do child themes work?
- Fail to install theme on development copy of WordPress on Webmatrix
- How to prevent XSS attack in wordpress theme?
- Featured Image Module Randomly Disappears
- Show post thumbnail only if it exists using timthumb
- Getting all months in one year WordPress Archive
- How to automatically set a Template Page Name next to a page in menu screen such as WooCommerce pages, front page, or posts page in wordpress?