Change Menu Button Text [closed]

I figured this out myself. It can be changed in the PHP code rather than in the WordPress dashboard. Log into your web hosting (or access the files via ftp), open a file manger and find this file: wp-content/themes/’YourTheme’/header.php Where ‘YourTheme’ is the name of the theme you’re using. I’m using shoreditch. Edit this file. … Read more

Add div on EMED Tag

you can use ’embed_oembed_html’ to wrap that iframe inside the div. add_filter(’embed_oembed_html’, ‘Oembed_youtube_no_title’, 99, 4); function Oembed_youtube_no_title($html, $url, $attr, $post_id) { return ‘<div class=”embed-container”>’ . $html . ‘</div>’; } Didn’t test please let me know if it works for you.

Adding srcset to an image in ajax

wp_get_attachment_image_srcset is the key here: wp_get_attachment_image_srcset( int $attachment_id, array|string $size=”medium”, array $image_meta = null ) I believe the missing information you lack, is that post thumbnails are actually an attachment ID. In combination with get_post_thumbnail_id you should be able to generate srcset values. But also keep in mind that while googling, every question I found … Read more

How to edit embed filter for youtube video to allow responsive full width layout

Thanks to Serkan’s suggestion I was pointed in the right direction to search for editing the wrapper rather than filtering the video itself (even though I would have loved a “filter only” solution.) Nonetheless, I stumbled upon a easy solution here – https://millionclues.com/wordpress-tips/fullwidth-responsive-youtube-embeds/ … I hope this can assist someone else with the same issue … Read more

Modify YouTube Embed Code to fit theme

If you’re using the block editor, the fix is simple: add_theme_support( ‘responsive-embeds’ ); You can also make the iframe responsive using pure CSS, just wrap it in a div: <div class=”yt-container”> </div> .yt-container { position:relative; padding-bottom:56.25%; padding-top:30px; height:0; overflow:hidden; } .yt-container iframe, .yt-container object, .yt-container embed { position:absolute; top:0; left:0; width:100%; height:100%; } This article … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)