Phil
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Previous/Next php responsive themes. (Code included)Wrap them in a div then float and clear them:
<div class="floatleft"> <?php previous_post_link('%link', '<img src="http://aaaa.com/wp-content/uploads/aaa/05/back-arrow.png"/>', TRUE); ?> </div> <div class="floatleft"> <?php next_post_link('%link', '<img src="http://aaaaaaa.com/wp-content/uploads/aaa/05/next-arrow.png"/>', TRUE); ?> </div> <div class="clear"></div>and in CSS…
.floatleft { float: left; } .floatright { float: right; } .clear { clear: both; }Try that. 🙂
Forum: Fixing WordPress
In reply to: image size is wrongYour image is being resized somewhere, as this is the HTML output:
http://i2.wp.com/macrodiver.com/wp-content/uploads/2013/04/map_text_sites.jpg?resize=550%2C418This is how they are meant to look from the original theme:
http://demo2.woothemes.com/?name=functionNow you’ve reduced the size of the thumbnails, you need to move some things about to make it sit correctly. Here’s what I would do:
Currently you have an empty div called ‘fix’.
I would move the:
* post title (div class ‘header’)
* post meta (div class ‘post-meta’)
* post excerpt (div class ‘article-inner’)… INSIDE the empty ‘fix’ div (and in that order).
I just tried it in my browser and it looks OK, bar a few little CSS tweaks to close some padding.
Forum: Fixing WordPress
In reply to: Using wordpress as a searchable database?You’d probably be better building in custom taxonomies into a custom post type, then using an advanced search to filter through those taxonomies.
Forum: Fixing WordPress
In reply to: Buttons on Posts and Pages no longer workSounds like a plugin could be causing a conflict somewhere. Disable all plugins, try again, then one-by-one reactivate each plugin to find which one is messing things up for you.
Forum: Fixing WordPress
In reply to: add Hover Text to Older Post ButtonTry this:
<?php previous_post_link('<div class="older-wrapper">%link</div>','<img src="imglink" title="Older Post" />'); ?>Forum: Fixing WordPress
In reply to: Issue with image auto resing…Make sure you use the image at full-size of it’s upload. It sounds like you might be using a medium or large version, then sizing it larger which is why it stretches.
Forum: Fixing WordPress
In reply to: 404 pageTry uploading a fresh copy of WordPress from the repository. There may be something missing from an update/install.
Forum: Fixing WordPress
In reply to: The description is missing in the head section of the page.You can also overwrite each description at the bottom of each post/page.
Forum: Fixing WordPress
In reply to: List Taxonomy terms seperated by commasAnyone, any ideas?
I’ve also tried this:
<?php $terms = get_the_terms( $post->ID, 'sector' ); $newTerms = Array(); foreach ($terms as $term) : $newTerms[] = $term->name; endforeach; echo implode(', ', $newTerms); ?>Download a plugin called ‘Sucuri scanner’ which checks for places malicious code can be injected. It also provides ways to safeguard your WP install from future attacks and spam.
Forum: Fixing WordPress
In reply to: Landing Pages for Different CountriesGoogle it, but somewhere like this.
Forum: Fixing WordPress
In reply to: Landing Pages for Different CountriesIn basic terms, to avoid duplicate content, you could program in to your header.php file to check IP country range (using some IP tracing software, eg maxminds), you could then do IF statements on a new landing page template, so ‘IF country X, display this’, ‘IF country X, display that’ etc.
A lot of IF statements, but could do what you need it to.
Forum: Localhost Installs
In reply to: Permalink IssueYou mean a .htaccess FILE right? Not folder…
You may need to check your MAMP settings and ensure URL re-writing is enabled (normally mod_rewrite has to be enabled on servers).
Forum: Fixing WordPress
In reply to: Site all messed upLooks ok to me, not sure what the problem is that you’re seeing. The only thing is that the images are pixelated but not sure if thats how you uploaded them.
PS – I like your music taste. 😉