lucentx
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Forum: Themes and Templates
In reply to: Thumbnails..You could do something like this inside the loop:
<?php $size = 'thumbnail'; //thumbnail, medium, large or full echo get_the_post_thumbnail(get_the_ID(), $size, ''); ?>Or if you want to create a custom size you can do something like this:
<?php if ( function_exists( 'add_image_size' ) ) { add_image_size( 'homepage-thumb', 220, 130, true ); } echo get_the_post_thumbnail(get_the_ID(), 'homepage-thumb', $attr); ?>More info here
Forum: Localhost Installs
In reply to: Error establishing a database connectionCan you post the contents of your wp-config.php so we can have a better look at it?
Forum: Themes and Templates
In reply to: Changing fonts colorsAdd a css color property like here
For more info go to css color property
Forum: Fixing WordPress
In reply to: Styling comments pageTry adding the padding only to the targeted pages. In this case for single pages:
.single .entry-content { padding: 25px; overflow: hidden; }I was getting the same error.
if ( version_compare( $current_version, '1.2.3', '<' ) ) { $opt = get_option('wpseo'); foreach ( $opt as $key => $val ) { if ( !in_array( $key, array('ignore_blog_public_warning', 'ignore_tour', 'ignore_page_comments', 'ignore_permalink', 'ms_defaults_set', 'version', 'disableadvanced_meta', 'googleverify', 'msverify', 'alexaverify') ) ) { unset( $opt[$key] ); } } update_option('wpseo', $opt); }It seems that the one that’s causing the error are the options. The $opt variable above is trowing a string when it’s supposed to be an array. The only fast way that I’ve seen is by updating the settings on the Yoast WordPress SEO dashboard.
Viewing 5 replies - 1 through 5 (of 5 total)