Forum Replies Created

Viewing 15 replies - 46 through 60 (of 202 total)
  • Thread Starter miocene22

    (@miocene22)

    OK I’ll try on a local install, thanks

    Thread Starter miocene22

    (@miocene22)

    Thought of doing that before and it works a treat. Thanks!

    Thread Starter miocene22

    (@miocene22)

    Yes 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.

    Thread Starter miocene22

    (@miocene22)

    OK 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.

    Thread Starter miocene22

    (@miocene22)

    Sorry to bump. Still haven’t figured this out…

    Thread Starter miocene22

    (@miocene22)

    Thanks 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.

    Thread Starter miocene22

    (@miocene22)

    Anyone 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.

    Thread Starter miocene22

    (@miocene22)

    Thanks, that tutorial did it!

    Dunno what $P$BiSM3WuFhjR11/4mXZ3Gw6y/0/32ET. was doing in the password box…

    First 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.

    yes, just add this css:

    .container{
    background-color:green;
    }

    Obviously put your preferred colour in instead of green.

    Thread Starter miocene22

    (@miocene22)

    anybody?

    maybe 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 and div#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.

    Thread Starter miocene22

    (@miocene22)

    OK, 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

    Thread Starter miocene22

    (@miocene22)

    any ideas anyone?

    Thread Starter miocene22

    (@miocene22)

    Yea 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…

Viewing 15 replies - 46 through 60 (of 202 total)