miocene22
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Exporting whole wordpress site including imagesOK I’ll try on a local install, thanks
Forum: Fixing WordPress
In reply to: query a fixed number of postsThought of doing that before and it works a treat. Thanks!
Forum: Fixing WordPress
In reply to: query a fixed number of postsYes I am defining $ppp as 9. In fact I have a back-end control panel with an option to enter a custom $ppp, defaults to 9:
<?php if(get_option('mf_ppp') !=''){$ppp = get_option('mf_ppp');} else {$ppp = 9;} ?>
Also, I want to still display sticky posts, I just want them to count towards the posts per change.
I tried removing to stickyness of the posts and it works fine. But I want some posts to be sticky.
Forum: Fixing WordPress
In reply to: Multiple domains, 1 wordpress siteOK so I’ve posted a ticket with my web hosting provider (where mysite.co.uk domain is also kept). They say only domains registered with them can be used with their hosting. So looks like I’ll have to transfer the mysite.com, then point it to my hosting, edit my wordpress settings, then set up a 301 redirect on the .co.uk address.
As for google apps, although you can add alias domains to your apps account, there is no way to change your primary address. Looks like I’ll have to set up a new Google Apps acount with the .com, then delete my old account and add the .co.uk as a domain alias.
Looks like a lot of work and a bit of a pain.
Forum: Fixing WordPress
In reply to: Image editor does not work for large imagesSorry to bump. Still haven’t figured this out…
Forum: Plugins
In reply to: nextgen slideshow not working in ie8Thanks for the reply and the compliment. I’ve changed the front page to a static image.
Couldn’t figure out what was causing it not to work in IE. Compatibility mode did work fine but I don’t think IE is in compatibility mode by default. This would cause a problem for many non internet-savvy visitors who are still using IE8.
If anyone has any ideas why it didn’t work I’d appreciate it hugely. Unfortunately you’ll not be able to test it on my site anymore as the slideshow has been removed. I might set up a test page soon elsewhere.
Forum: Plugins
In reply to: nextgen slideshow not working in ie8Anyone have any ideas? Sorry to bump but I can’t figure this out…
Edit: The slideshow works fine when IE8 is in “compatibility mode”. This is not much good however as most IE8-using visitors wont have compatibility mode activated or know to activate it.
Forum: Fixing WordPress
In reply to: Password on local install resetThanks, that tutorial did it!
Dunno what $P$BiSM3WuFhjR11/4mXZ3Gw6y/0/32ET. was doing in the password box…
Forum: Themes and Templates
In reply to: Custom Menus on Different PagesFirst make sure you have registered your menus in functions.php:
//register the custom menus function register_my_menus() { register_nav_menus( array( 'profile-menu' => __( 'Profile Menu' ) 'services-menu' => __( 'Services Menu' ) ) ); } add_action( 'init', 'register_my_menus' );
Customise each menu in the wordpress backend.
Then call the relevant menu using an if statement in the sidebar (or wherever you want the menus to appear).<?php if (is_page('profile')){ wp_nav_menu(array('menu'=>'profile-menu' )); } elseif (is_page('services')) { wp_nav_menu(array('menu'=>'services-menu' )); } ?>
ensure the string in the
is_page()
function matches the slug (or id) of the page you want to check.Forum: Fixing WordPress
In reply to: Add colour to inner container?yes, just add this css:
.container{ background-color:green; }
Obviously put your preferred colour in instead of green.
Forum: Fixing WordPress
In reply to: Enqueue scripts on certain pages onlyanybody?
Forum: Themes and Templates
In reply to: How to Style all levels of threaded comments with same font sizemaybe just use
.commentlist li{ font-size:1em; }
this selects all the li elements, regardless of whether it’s in a ul or ol.
You also seem to have many conflicting selectors in your stylesheet like
.comment-body p
,div#single-body ol li
anddiv#single-body ul li
etc that all specify font sizes. This is a bad idea. Just define the font size for everything at once and then specify sizes for sub-elements after like .comment-meta etc.Forum: Fixing WordPress
In reply to: the_post_thumbnail image sizesOK, I’ve managed to work it out myself.
If anyone’s interested here’s how it works:
In functions.php add this function under the
add_theme_support( 'post-thumbnails' );
function:add_image_size( 'mycustomsize', 260, 190, true );
This registers a new image size to be defined for post thumbnails. The ‘true’ in the function tells wordpress to crop images if necessary to achieve the desired proportions. This means your images will be made to be exactly the dimensions specified, not just width/height limited.
Then just call the custom size in your theme by using the image size string in the function:
<?php the_post_thumbnail('mycustomsize'); ?>
Obviously, you can add more custom sizes and call them when required throughout the theme.
Note: Image cropping is only applied to newly uploaded images; images previously uploaded as post thumbnails will not be cropped after adding the image size function, however they will be resized as normal.
Hope this helps some people
Forum: Fixing WordPress
In reply to: the_post_thumbnail image sizesany ideas anyone?
Forum: Fixing WordPress
In reply to: querying posts for the loopYea I have it in the theme but I don’t have enough thumbnailed posts to see if it works.
Seems to work at the moment though…