You can set iframe tag with width:100%
Let say you have the following structure
<div class="video">
iframe tag here
</div>
<style>
.video iframe {
width: 100%; // this will automatically adjust the height
}
</style>
Related Posts:
- What is the difference between front-page.php and home.php? [duplicate]
- How important is it to enqueue a theme’s stylesheet?
- Can a theme be built in React?
- Strict Standards Error bootstrap navwalker
- Specify image dimensions
- Adding Action Hooks In Parent Theme For Easier Child Theme Customization
- register_sidebar ignores ‘id’ and ‘class’
- Add colors to existing color palette without replacing it
- Single Page WordPress Theme – Using page templates
- Add link option to featured image?
- Creating the modern ‘single page’ html5 css3 layout in wordpress
- esc_url not working within add_settings_field callback
- How to hide and content from auto-generated excerpts?
- How to override BuddyPress 3.0 bp-nouveau theme files?
- Which theme foundry has clean coded themes, where code is poetry [closed]
- Default header image does not display
- Same footer on all multisites blogs
- A guide or tool for inserting bootstrap in underscores theme? [closed]
- New template, where to place CSS?
- Custom CSS without css.php file
- Understanding WordPress(framework?) Web Development
- For best DB performance should I serialize all theme options together or by type?
- Find the Children of a Page then Echo it as a Bulleted List of Links (menu)
- How to control layout of posts on page?
- saving row as a template using WPBakery Page Builder is not working [closed]
- Non-Blog Website without Search: are comments.php and search.php in theme still required?
- Custom metabox for custom page template
- Display recent posts with thumbnail
- Custom Widget options in theme
- Include Parent functions.php in Child Theme functions.php
- Redirect to specified page when insufficient permissions?
- Reasons why all thumbnail sizes aren’t working
- Primary navigation menu & footer not showing in category / tag page
- Jetpack Comments with fall-back
- Update a custom theme with Subversion?
- wp_script_add_data doesn’t seem to work
- How to override checkbox styles if these inputs have a unique id [closed]
- Exclude read more in the_excerpt [closed]
- What are the minimum role/permissions for freelance developer?
- How do i place same widgets multiple time by default on theme activation?
- Getting php_network_getaddress error : No such host is known?
- HTML added to editor when deleting shortcodes in Chrome browser
- Combining CSS files into a single cached one
- How to set a page as homepage in stead of the newspages?
- WordPress Theme Validator?
- Get the amount of posts on a given page
- How do I use a color from theme options?
- I used single quote to design HTML of my WordPress blog. Now site redirects to index.php everytime than page.php or single.php
- Is there any way to register custom background images like header images?
- How to make javascript work on theme options page
- Second menu has the first menu ID
- How to include a file only on dashboard widgets page?
- What exactly is “wordpress theming”? [closed]
- Present Color Schemes to Clients
- WP_Query $gallerypage->the_post() giving Undefined offset: 0
- Change Image Sizes for Mobile Theme
- Dynamically Populating Image/Excerpt/LInks from Pages in WordPress
- Trouble in creating a custom template on twentyeleven theme
- language support in a custom urdu theme
- If I remove Category base from my URLs, how difficult will rollback be?
- Is there a list of default generated Gutenberg block CSS? Unable to align video blocks
- Adding popup support to the theme
- In wordpress customizer div still showing even if I hid it with javascript
- How do I change the color of individual page titles in WordPress?
- Programatically Created Menu not Editable in Dashboard
- How toprint informations in footer
- How to implement pagination in category.php template
- Embedding CodePen Calorie Script – jquery error
- How to reduce the vertical space above and below a ul list uniformly with one command?
- Is it possible to echo a woocommerce prouct attribute discription?
- WordPress Menu item > Sub menu Class update
- Duplicate child theme incl. design changes
- Why .widget-area is outside of .site-content in Underscores starter theme?
- How can I use a different template file for the blog index’s paginated pages?
- How to customize the colors within a stylesheet using a WordPress setting
- Images use & location, on new wordpress theme
- On wordpress, how do i require specific dimensions from user uploads only
- how to create export / import theme options in wordpress without plugin
- Slider should be display in home template [closed]
- WordPress Customization API overwrite LESS variable
- Modify comments_popup_link output
- Create image with imagepng() (fails at header)
- Can you create a custom page with content in the center already defined?
- Dynamic meta description
- How to Remove Sidebar when get_sidebar() is not get called in page?
- RSS feed url showing page not found. How to solve it?
- Plugin or script to apply updated media settings to all featured images
- Header links also appearing in the footer
- Extending arrays in parent theme without completely overriding the files
- Retina ready for uploaded images which are cropped
- WordPress Subpages Fancybox Trouble
- Toolbox theme using printif statement – help needed understanding code block
- Search Results not displaying for multiple word search
- Allow users to edit home page from WordPress (home.php problems)
- WordPress does not know the parametrs i sent to admin post
- Display Page featured Image as well as Posts featured Image
- Custom Single Page Portfolio Theme [closed]
- Add wrapper for a specific sub-menu
- Theme’s featured image option is not showing up
- Not Able to Access Terms Under Custom Taxonomy Archive