Equal height sections in custom Headway Theme

We can do this without touching theme files either by using a child theme or Writing a Custom Plugin, To include only css I’d use plugin rather than a child theme. Example – <?php /* Plugin Name: My Styles Description: My Custom Styles for THEME-NAME */ //Create a `my-style.css` in plugin folder add_action( ‘wp_enqueue_scripts’, ‘wpse64258_custom_styles’ … Read more

Plugins not showing up for custom template

Always Put wp_head() in header and wp_footer() in footer. the plugin uses this hook Header.php: <?php … /* Always have wp_head() just before the closing </head> * tag of your theme, or you will break many plugins, which * generally use this hook to add elements to <head> such * as styles, scripts, and meta … Read more

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

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