Stylesheet being loaded outside of

The two stylesheets is only loaded when a video or sound was included in a post or page and that happens after wp_head. But do not despair! There is a filter you can use! in the code it looks like this: apply_filters( ‘style_loader_tag’, “<link rel=”$rel” id=’$handle-css’ $title href=”https://wordpress.stackexchange.com/questions/115412/$href” type=”text/css” media=”$media” />\n”, $handle ); so i … Read more

Embed HTML5 files/subfolders in post?

This plugin should do exactly what you’re looking for: http://wordpress.org/plugins/shortcurl/ it will allow you to embed a shortcode in your post that should go grab external content and place it exactly how you’d like it to. Since it’s not an iFrame, you should also be able to style the content appropriately without much issue (if … Read more

Genesis loading of html5shiv for IE8

According to Microsoft’s docs, the syntax for revealing and hiding content using conditional comments are different, so since you’re trying to only use (reveal) the script for IE8 and below (vs. hiding it), the echo statement should change to: echo ‘<![if lt IE 9]><script src=”https://html5shiv.googlecode.com/svn/trunk/html5.js”></script><![endif]>’ . “\n”; Support for conditional comments ended with IE10, so … Read more

Soundcloud Smart Player

If a shortcode isn’t too much effort you can use it to construct the soundcloud url for embedding. add_shortcode(‘soundcloud_auto’, ‘soundcloud_auto_shortcode’); function soundcloud_auto_shortcode($atts) { global $post; $title = str_replace(” “, “”, $post->post_title); $title = str_replace(“-“, “”, $title); $title = str_replace(“_”, “”, $title); $slug = sanitize_title($title, str_replace(“-“, “”, $post->post_name)); return wp_oembed_get(esc_url(“http://soundcloud.com/$slug”)); } Or do something similar using … Read more

Meta Tag “description”

Do not add meta tags in post editor. Best way to do is use SEO plugins. Best plugin for SEO is Yoast Seo Or add this code in your themes header.php just after title tag. <meta name=”description” content=”<?php if ( is_single() ) { single_post_title(”, true); } else { bloginfo(‘name’); echo ” – “; bloginfo(‘description’); } … Read more

Adding to the WYSIWYG

TinyMCE has a ‘formats’ dropdown that you can add options to: This option enables you to add more advanced style formats for text and other elements to the editor. The value of this option will be rendered as styles in the styleselect dropdown toolbar item. https://www.tinymce.com/docs/configure/content-formatting/#style_formats The first thing you need to do is add … Read more