Forum Replies Created

Viewing 15 replies - 1 through 15 (of 17 total)
  • Thread Starter johnupatree

    (@johnupatree)

    Doh!
    Thank you shamratdewan, I realised after you told me that I was looking at my child CSS, not the parent, how stupid of me.

    Many thanks again, problem is now resolved.

    I love this forum, so much good advice and help on offer

    John

    Thread Starter johnupatree

    (@johnupatree)

    Hi,
    FTP is no problem, will get it sorted tomorrow.
    Many thanks again for taking the time to reply and for the advice. Very much appreciated.
    Enjoy your day/night, wherever you are!
    John

    Thread Starter johnupatree

    (@johnupatree)

    Hi Esmi,
    No success with my hosts, they say it is not a problem at their end. I will go for a manual upgrade. I presume by that you mean a reinstall by the way, not a problem with that, just a pain!
    Thanks again
    John

    Thread Starter johnupatree

    (@johnupatree)

    Gone back to the drawing board. Will spend more time reading before I go any further!

    Thread Starter johnupatree

    (@johnupatree)

    Thatisexactly what I have done. Left the original alone, not copied it but created a new one. It is I the child directory along with a (working as required) child style.css

    Thread Starter johnupatree

    (@johnupatree)

    OK, I have had a play, think I may have guessed the answer to my conditionality question, however I now have another issue!
    When I upload the .php file I cannot access my site OR the admin. Once I delete the Child .php normality is restored. Any suggestions welcome.

    My Child functions.php looks like this;

    <?php
    
    if ( ! function_exists( 'pinboard_current_location' ) ) {
        function pinboard_current_location() {
            //  Do something.
        }
    }
    if ( ! function_exists( 'pinboard_current_location' ) ) :
    /**
     * Highlight current location in the archive
     *
     * @since Pinboard 1.0
     */
    function pinboard_current_location() {
    	global $pinboard_page_template;
    	if ( ! ( is_home() && ! is_paged() ) && ! is_singular() || isset( $pinboard_page_template ) ) {
    		if( is_author() )
    			$archive = 'author';
    		elseif( is_category() || is_tag() ) {
    			$archive = get_queried_object()->taxonomy;
    			$archive = str_replace( 'post_', '', $archive );
    		} else
    			$archive = ''; ?>
    		<hgroup id="current-location">
    			<h6 class="prefix-text"><?php _e( 'pinboard' ); ?> <?php echo $archive; ?></h6>
    			<<?php pinboard_title_tag( 'location' ); ?> class="page-title">
    				<?php if( isset( $pinboard_page_template ) ) {
    					echo the_title();
    				} elseif( is_search() ) {
    					__( 'Search results for', 'pinboard' ) . ': "' .  get_search_query() . '"';
    				} elseif( is_author() ) {
    					$author = get_userdata( get_query_var( 'author' ) );
    					echo $author->display_name;
    				} elseif ( is_year() ) {
    					echo get_query_var( 'year' );
    				} elseif ( is_month() ) {
    					echo get_the_time( 'F Y' );
    				} elseif ( is_day() ) {
    					echo get_the_time( 'F j, Y' );
    				} else {
    					single_term_title( '' );
    				}
    				if( is_paged() ) {
    					global $page, $paged;
    					if( ! is_home() )
    						echo ', ';
    					echo sprintf( __( 'Page %d', 'pinboard' ), get_query_var( 'paged' ) );
    				}
    				?>
    			</<?php pinboard_title_tag( 'location' ); ?>>
    			<?php if( is_category() || is_tag() || is_tax() ) : ?>
    				<div class="category-description">
    					<?php echo term_description(); ?>
    				</div>
    			<?php endif; ?>
    		</hgroup>
    		<?php
    	}
    }
    
    function replace_howdy( $wp_admin_bar ) {
     $my_account=$wp_admin_bar->get_node('my-account');
     $newtitle = str_replace( 'Howdy,', 'Greetings from the far side', $my_account->title );
     $wp_admin_bar->add_node( array(
     'id' => 'my-account',
     'title' => $newtitle,
     ) );
     }
     add_filter( 'admin_bar_menu', 'replace_howdy',25 );
    
     ?>

    Thread Starter johnupatree

    (@johnupatree)

    Thank you all.

    Had a good play with Firebug now, really useful, can see I will be using this a lot.

    Will look at my file structure again now I know what the correct structure should be, one of those simple things that you only know when you know it!

    Diff checker will be a real help too, couldn’t for the life of me think how to do it otherwise.

    Many thanks, once again for all the help, advice and guidance.

    John

    Thread Starter johnupatree

    (@johnupatree)

    WPyogi,

    Just a follow up regarding your reply.

    I fully understand your comment regarding the child them, I now know how to create a child theme correctly. The issue I have now is what is the best way to do this? Do I have to start from scratch or is there an easy way to extract from my modified parent CSS the changes I have made?
    Starting from scratch would be a bit of a pain, but hey, it’s a learning experience!

    Picking up on your other comment regarding my file structure looking atypical, would you mind expanding on this, as I am not quite sure what you mean?

    Many thanks, yet again.

    John

    Thread Starter johnupatree

    (@johnupatree)

    Superb.

    Thank you, will spend some time having a play!

    Have installed Firebug and can see what you mean.

    Looked at the link and the child theme now makes more sense, I, as you probably guessed, simply copied the parent theme and modified it. I am a newbie, so hey, we all make mistakes ??

    Many thanks for your time and excellent reply. Most helpful.

    John

    Forum: Fixing WordPress
    In reply to: Editing title text
    Thread Starter johnupatree

    (@johnupatree)

    Ryan,

    Just as an aside, I have spent the last few hours looking at PHP and have had the penny drop. I now understand how the text is generated and why I could not see it! Clever stuff.

    Thanks again

    John
    ps give my love to The Rocks ??

    Forum: Fixing WordPress
    In reply to: Editing title text
    Thread Starter johnupatree

    (@johnupatree)

    Hi Ryan,

    Excellent, just what I wanted, thank you.

    I think I need to do some reading on PHP and how it functions, I know the principle, but not what or how it ‘links’ to, ie were is that text “Currently Browsing Category” it has to be somewhere?

    Anyway that is another thread for another day!

    Many thanks

    John

    Forum: Fixing WordPress
    In reply to: Editing title text
    Thread Starter johnupatree

    (@johnupatree)

    Hi Ryan,

    Thanks once again for a rapid and detailed reply, much appreciated. However I may not have made myself very clear, I wish to retain the category, but remove the text that says ” Currently browsing category”

    So when I click on view all posts in a category, it brings up the category title, say Vegetarian, but does not display the text “Currently browsing category”

    Hope this makes sense, I know what I am trying to say, sorry if I am not making it very clear :-/

    John

    Forum: Fixing WordPress
    In reply to: Editing title text
    Thread Starter johnupatree

    (@johnupatree)

    Hi Ryan

    Thanks, the URL is

    https://johnpsmyth.co.uk/

    I have looked in the various .php files, but I cannot see the text I wish to change. What am I missing?

    John

    Thread Starter johnupatree

    (@johnupatree)

    Spoke too soon. Still not able to do this. Any suggestions greatly appreciated.

    John

    Thread Starter johnupatree

    (@johnupatree)

    Sorry WPyogi, thought I had!

    https://johnpsmyth.co.uk

    John

Viewing 15 replies - 1 through 15 (of 17 total)