flex-width stands for flexible width and flex-height stands for flexible height
<?php
// Previous function code here
$args = array(
'default-image' => get_template_directory_uri() . '/assets/images/default-image.jpg',
'default-text-color' => '000',
'width' => 1140,
'height' => 250,
'flex-width' => false, // Now width are fixed to 1140 px
'flex-height' => true, // Height is adjustable
);
// Later Code Here
?>
Related Posts:
- How to add CSS class to custom logo?
- How to insert a logo in the header?
- Editing the custom background CSS
- How to change get_custom_logo() url?
- How to add default images for custom backgrounds?
- Add colors to existing color palette without replacing it
- add_theme_support(‘my-custom-feature’)
- add_theme_support( ‘custom-header’ ) does not add option menu in dashboard
- No Appearance –> Header menu
- “add_theme_support” for custom footer color?
- Show video as part of the post?
- How to add theme support?
- WordPress navbar with logo in middle [closed]
- Edit footer via customizer
- Theme Development: Starter Content after hook
- Can I add multiple arrays within add_theme_support( ‘colors’ )?
- How to use add_theme_support(‘html5’)?
- Theme support title tag – how to replace the default WP separator (with a filter)?
- WordPress HTML5 Gallery Support – Convert HTML4 -> HTML5
- add_theme_support( ‘admin-bar’ ) causes fatal error
- SIte logo is not displaying
- Adding a second logo next to the main one in header
- What is difference between add_theme_support and Theme Customization API?
- Alt header logo and link for specific pages
- Replaceing _custom_background_cb
- Theme’s featured image option is not showing up
- Nested comments in WordPress theme
- Why does WordPress append numbers to page slugs sometimes? How to reliably style based on page
- filemtime(): stat failed warning within a child theme
- What are the hooks in WordPress theme development?
- How can I override a require() used in functions.php of parent theme to my child theme
- Best way to develop a new theme on a live site, with new content? [closed]
- Tag Page Not Listing All Posts With Tag
- WordPress dummy data for theme design
- Can I use WooCommerce in a headless CMS setup?
- How to transfer one domain to another domain without losing theme options (customizer)?
- Do I need to include a textdomain if my theme doesn’t support translation?
- Pagination not working on page template
- How can I prevent posts with no title showing up in my query?
- adding class to excerpt
- How can I wrap all blog posts image with
- How to allow users to create their own website within my domain? [closed]
- Redux Setting on custom created admin page
- Problem escaping text which contains html markups
- Avada Child Theme Development
- Issue when posting updates/changes to wordress
- Editing my theme to try to place the default header at the top of the page breaks the rest of the page content
- WordPress creating images if uploaded image is greater than 960px on one side?
- WordPress Load Only Page Text
- Create theme for mobile phones and tablets only?
- Using the media library for theme customization
- Never actually adding the action? Or do I have to call the action?
- Seeting Active Nav for Bootstrap in WordPress
- Tiny MCE custom styles, and preview in the backend
- How can I remove image taxonomy pages from my theme and from Google?
- How can I get dynamic content on my static home page
- WordPress 6.x / PHP 8.x deprecated warnings in development environment
- WordPress custom menu can’t show 3. level submenu
- Best way to implement bootstrap after loading
- Social-Link block not loading html on page with custom theme
- How to Detect “Your homepage displays” setting in wordpress
- Why does wp_customizer default values do not apply when theme is installed for the first time?
- Building a custom menu or use a plugin?
- Custom Static Page to Display Blog Posts in Excerpt Non-Singular Form (is_singular not working?)
- How Do I Create a WordPress Demo Site with Limited Admin Access
- Importing sass into underscores theme
- Woocommerce REST API for my account & checkout process
- How can I fix my theme header for my CSS stylesheet?
- Alternative solution for script_loader_tag?
- Change logo url by category and in some pages
- Enqueue script for development purposes only?
- How to show Custom Field Value in Woocommerce Shop Page
- How to transfer all posts, pages and media
- What are entry.php and its appendix files and is it safe to delete them in a most miniaml site?
- Custom theme vs theme customization?
- style.css not being rendered in browser
- WordPress Customizer Help with FontAwesome Icon
- Correct (and secure) way to escape url when using href attribute
- “Add media” dialog is not showing any images
- How to debug theme (Theme is causing pages to have no style or HTML section)
- captiva Theme Error
- How to get the Clicked ID and output that ID data in another page
- How to correctly add the featured immage (thumbnails) support in a WP theme? Why I can’t add a featured immage?
- Two theme options pages for a theme
- “No Data Received” error in Chrome every time i try to update the theme functions file
- Creating a Playlist of Widgets
- Loop through all posts, show attachment if there
- Strict Standards Error bootstrap navwalker
- Can’t attach Javascript to theme
- Menu item not created on theme activation
- Ubuntu 13.04 create new wordpress theme from scratch problems
- 404 on child page template
- Confused on loading page content
- Problem dynamically generating an all purpose title tag
- Loop inside page template not working
- why my WordPress theme doesn’t support shortcode? [closed]
- I’m new in developing responsive WordPress Theme, so which framework to use or work from scratch? [closed]
- How to set up a development/staging site to make major changes to the theme then update on the live site?
- What is the point of using the front-page.php template? [closed]
- My theme is full of error messages in the “Customize” screen, but nowhere else