Dave Naylor
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Date formatI played around with this and found this StackOverflow post. If you take the functions from the top answer and paste them into your theme’s functions.php file and then use this in your template:
<?php echo strtoupper(convertNumber(get_the_date('Y'))); ?>For 2014 you end up with TWO THOUSAND AND FOURTEEN.
It’s a bit of cracking a nut with a sledge hammer but I have it working on my test site. You could use it in conjunction with another the_date() string to form the output you require.
Forum: Fixing WordPress
In reply to: Add a thick line across the whole pageThe hr element would seem appropriate:
<hr>Forum: Fixing WordPress
In reply to: Header disappearsYou need to include as much information as possible
I noticed. Glad you got it sorted out 🙂
Like this:
.desc p { font-size: 15px; color: #ff9900; }For the background behind your posts:
.ch_main { background: <some colour>; }Forum: Fixing WordPress
In reply to: Images on Phone BLANKYou need to include as much information as possible
Forum: Fixing WordPress
In reply to: my slides not workingTry upgrading to WordPress 3.8.1 (you’re on 3.5.1) and install the later version of Flexislider, 2.2 (you’re on 2.0).
Forum: Fixing WordPress
In reply to: Get Post TitlesYou’re missing this at the end:
<?php endif; ?>Forum: Fixing WordPress
In reply to: Help! hello world pop up when people visit my siteIf I view the site on a mobile device, I see what I think is what you want to have as your home page using the wpex-photo theme. If I view on a desktop browser, I see a different theme altogether, TwentyFourteen. The desktop version is cached and appears to have been so for a few hours:
<!-- Dynamic page generated in 2.101 seconds. --> <!-- Cached page generated by WP-Super-Cache on 2014-03-22 00:53:58 --> <!-- super cache -->The mobile version isn’t cached.
Try clearing your cache (Super Cache) to see if that clears the issue.
Forum: Fixing WordPress
In reply to: JPEG Pictures not showingSpeak to the designer. If she made amendments to your site she may have forgotten to reset your file permissions. Is there an example of a missing image live anywhere on the site?
Forum: Fixing WordPress
In reply to: JPEG Pictures not showingIt’s possibly a file permission issue on your site’s server. Did you make any recent changes to the site. Can you post the site URL?
Forum: Fixing WordPress
In reply to: Is the error.log file in the wp-admin folder needed?What kind of log lines does it contain? What’s producing the error?
Forum: Fixing WordPress
In reply to: screen full of gibberish1. You have W3 Total Cache installed. View the source of your home page, look at the bottom, it’s printing out the details of what it’s done. I suspect that disk based object caching is the culprit. Try disabling that.
2. More than likely two separate things. When your site loads again, I’ll check it out on my dog and bone.
Forum: Fixing WordPress
In reply to: Removing unwanted image bordersNo. If you just want to target one image for any reason, just one, then you can be really specific and use the image’s unique class, for example:
.wp-image-738.However, because you asked:
If I was to need it again but with a different image
it makes more sense to apply a global class to any image you want to target. It saves you from going:
.wp-image-738, .wp-image-742, .wp-image-749, .wp-image-756 { border: none; }or even worse:
.wp-image-756 { border: none; } .wp-image-776 { border: none; } .wp-image-786 { border: none; } .wp-image-796 { border: none; }So you define the new class once:
.no-border { border: none; }then when you’re adding a new image, you think, “Oh, I don’t want a border on this image, I’ll apply my special class…“
<img src="yourimage.jpg" class="no-border">Forum: Fixing WordPress
In reply to: Removing unwanted image bordersNo, create the class in the plugin. Just paste it in.