Forum Replies Created

Viewing 15 replies - 16 through 30 (of 30 total)
  • Thread Starter Galaxy_High

    (@galaxy_high)

    Me again,

    Somethings not function correctly. This will work:

    if (function_exists('add_theme_support')){
    	add_theme_support('post-thumbnails');
    	add_image_size('theslider', 10, 10, true);
    	add_image_size('theaboutpage', 20, 20, true);
    	add_image_size('thegallerypage', 30, 30, true);
    	add_image_size('thebrokeragepage', 40, 40, true);
    	add_image_size('thebrokeragepage-s', 50, 50, true);
    	add_image_size('thebrokeragepage-l', 60, 60, true);
    	}
    
    add_filter('image_size_names_choose', 'my_custom_sizes');
    function my_custom_sizes($sizes){
        return array_merge($sizes, array(
            'theslider' => __('A Slider'),
            'theaboutpage' => __('B About'),
            'thegallerypage' => __('C Gallery'),
            'thebrokeragepage' => __('D Brokerage'),
            'thebrokeragepage-s' => __('E Post Brokerage Small'),
            'thebrokeragepage-l' => __('F Post Brokerage Large'),
    		) );
    	}

    This will not:

    if (function_exists('add_theme_support')){
    	add_theme_support('post-thumbnails');
    	add_image_size('theslider', 960, 430, true);
    	add_image_size('theaboutpage', 210, 147, true);
    	add_image_size('thegallerypage', 161, 161, true);
    	add_image_size('thebrokeragepage', 184, 129, true);
    	add_image_size('thebrokeragepage-s', 155, 119, true);
    	add_image_size('thebrokeragepage-l', 543, 337, true);
    	}
    
    add_filter('image_size_names_choose', 'my_custom_sizes');
    function my_custom_sizes($sizes){
        return array_merge($sizes, array(
            'theslider' => __('A Slider'),
            'theaboutpage' => __('B About'),
            'thegallerypage' => __('C Gallery'),
            'thebrokeragepage' => __('D Brokerage'),
            'thebrokeragepage-s' => __('E Post Brokerage Small'),
            'thebrokeragepage-l' => __('F Post Brokerage Large'),
    		) );
    	}

    Thread Starter Galaxy_High

    (@galaxy_high)

    My bad,

    Needed to Force Regenerate Thumbnails for effects to take place.

    Hi Emma,

    I had the same problem last night. Took me hours to sort out and I still didn’t get there in the end.

    I ended up reverting to version 3.4.2 (had to copying from another, old, project.) Everything seems to work fine now.

    Thread Starter Galaxy_High

    (@galaxy_high)

    Reverted back to version 3.4.2 and all is well.

    Forum: Plugins
    In reply to: Strip tags from sidebar
    Thread Starter Galaxy_High

    (@galaxy_high)

    I suppose I should mention I’m trying to get the output to reflect this:

    <div id="sidebar">
    <h2 class="widgettitle">Archives</h2>
    <ul>
    <li><a href='https://localhost/mirfieldmarina/2014/08/'>August 2014</a>&nbsp;(4)</li>
    </ul>
    </div><!--end sidebar-->

    Thread Starter Galaxy_High

    (@galaxy_high)

    Brilliant! Just installed the update now.

    Thank you.

    Forum: Fixing WordPress
    In reply to: Styling navigation
    Thread Starter Galaxy_High

    (@galaxy_high)

    Figured it out.

    WordPress didn’t like me renaming the default category (can’t remember the name of it).

    So, I renamed the problem category to default and created a new category with the old name and associated all posts to it.

    Forum: Fixing WordPress
    In reply to: Styling navigation
    Thread Starter Galaxy_High

    (@galaxy_high)

    I have a page, say, Spades.

    I then have a post, say, Ace with a category name: spades.

    When you click on the Spades link in the navigation all the post related to category spades are listed.

    Does this make sense?

    Forum: Fixing WordPress
    In reply to: Post ID from Slug

    Like this?

    <?php
    if ( is_page('slug') ); { include 'the_ID()'; }
    elseif { ( is_page('slug_alternative') ); { include 'the_ID()'; }
    else { echo 'Error message'; } ?>
    Forum: Fixing WordPress
    In reply to: Styling navigation
    Thread Starter Galaxy_High

    (@galaxy_high)

    Hi Katya,

    I have seen that but I want the navigation to remain highlighted when posts are selected within a page.

    So it is similar to this:

    *Spades*>Post-whatever

    Forum: Fixing WordPress
    In reply to: Styling navigation
    Thread Starter Galaxy_High

    (@galaxy_high)

    OK, i kind of got something working without using the wp_list_pages and instead using this:

    <ul>
    <li class="page_item<?php if ( is_page('home') ) { echo ' current_page_item'; } ?>"><a href="/axis/">Home</a></li>
    <li class="page_item<?php if ( is_page('spades') || in_category('spades') ) { echo ' current_page_item'; } ?>"><a href="/axis/spades">Spades</a></li>
    <li class="page_item<?php if ( is_page('hearts') || in_category('hearts') ) { echo ' current_page_item'; } ?>"><a href="/axis/hearts">Hearts</a></li>
    <li class="page_item<?php if ( is_page('clubs') || in_category('clubs') ) { echo ' current_page_item'; } ?>"><a href="/axis/clubs">Clubs</a></li>
    <li class="page_item<?php if ( is_page('diamonds') || in_category('diamonds') ) { echo ' current_page_item'; } ?>"><a href="/axis/diamonds">Diamonds</a></li>
    <li class="page_item<?php if ( is_page('contact') ) { echo ' current_page_item'; } ?>"><a href="/axis/contact">Contact</a></li>
    </ul>

    Is there no way to implement this using the wp_list_pages function?

    If you’re using WordPress style the class page_item and current_page_item.

    /*Work around for IE*/
    #navigation ul li{
    width: 120px;
    float: left;}
    
    #navigation ul li a:hover{
    display: block;
    color: #000;
    background-color: #fff;}
    
    .page_item a:link, .page_item a:visited, .page_item a:hover, .page_item a:active{
    display: block;
    width: 120px;
    float: left;
    color: #fff;
    background-color: #000;}
    
    .current_page_item a:link, .current_page_item a:visited, .current_page_item a:hover , .current_page_item a:active {
    display: block;
    color: #000;
    background-color: #fff;}
    Thread Starter Galaxy_High

    (@galaxy_high)

    It was happening on only one page out of 15.

    Thanks for taking the time to get back to me.

    Regards.

    Thread Starter Galaxy_High

    (@galaxy_high)

    Well, I don’t know what I did but I did it.

    Just renamed the slug and it seems to work.

    Thread Starter Galaxy_High

    (@galaxy_high)

    Hello,

    It defers to pageone.

    I have many statements: 1 if, 12 elseif and a closing else.

Viewing 15 replies - 16 through 30 (of 30 total)