Word Press 'Leaf' Theme issue - logo size

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Word Press 'Leaf' Theme issue - logo size

Post by simonmlewis »

Hi

We am looking after a Word Press site for someone, but I am unable to upload a full width image of around 940px as the theme only allows a small logo on the top left.

Does anyone know how to override that?

I've read about changing the theme and new stylesheet, but that scares me a little, as it's not my blog to "break".
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Word Press 'Leaf' Theme issue - logo size

Post by Celauran »

wp-content/themes/leaf/header.php

Code: Select all

<div class="header-group six columns">
That's the rule that forces the header image down. Remove the class 'six' and the header will fill the width of the page.
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: Word Press 'Leaf' Theme issue - logo size

Post by simonmlewis »

I've taken the six out, but on uploading, when i refresh, and clear cache too, I still see this in the source:

[text]<div class="row">
<div class="header-group six columns">[/text]
Yet when I download the file again, "six" is not there.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Word Press 'Leaf' Theme issue - logo size

Post by Celauran »

Sounds like a caching issue. Any caching plugins running on the site?
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: Word Press 'Leaf' Theme issue - logo size

Post by simonmlewis »

I've really no idea. There are a lot of plugins. too many really.
Any that you know of that I can look for?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Word Press 'Leaf' Theme issue - logo size

Post by Celauran »

W3 Total Cache and WP Super Cache are the most common that I'm aware of. Plugins page and CTRL+F as a fallback.
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: Word Press 'Leaf' Theme issue - logo size

Post by simonmlewis »

Yes, they have WP Super Cache. So if I deactivate that, it won't cause problems with it?
How does that work though - surely your own browser is capable of caching?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: Word Press 'Leaf' Theme issue - logo size

Post by simonmlewis »

Ok, now I get it.

The owner of the site got an automated email to say "something had been changed" via WP Super Cache, and that it has restarted it. I think that means it's restarted wtih my new versio of header.php, and hey presto, it works!

Thanks
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Word Press 'Leaf' Theme issue - logo size

Post by Celauran »

simonmlewis wrote:Yes, they have WP Super Cache. So if I deactivate that, it won't cause problems with it?
How does that work though - surely your own browser is capable of caching?
There's a setting within WP Super Cache that allows you to clear cache. You seem to already have that sorted, though. Yes, your browser is capable of caching, but that only benefits you. From a server point of view, that's of only marginal benefit. If your site has a lot of traffic, server side caching allows you to execute all the queries once -- and with WP, especially with a ton of plugins, that's probably a TON of queries -- render the output, and save it as a static file. Subsequent requests will be served this static file, bypassing all those trips to the DB.
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: Word Press 'Leaf' Theme issue - logo size

Post by simonmlewis »

Why then does it work if I am logged in and shows the full width banner, but now if I log out, the old version shows. That really doesn't make sense!!
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Word Press 'Leaf' Theme issue - logo size

Post by Celauran »

Could also be a setting in WP Super Cache. I believe you can have it show cached version to anonymous users and latest version to logged in users in order to preview changes you're making to existing content.
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: Word Press 'Leaf' Theme issue - logo size

Post by simonmlewis »

Yes, it appears that plugin has some rather annoying features, if you don' tknow how to adjust them.

For future reference - here's what I had to do:
I had to untick all the boxes, apart from the top one in the cache are.
Then Save.
I then deleted the header page, and uploaded mine. Then reuploaded the new image, and set the crop to full image and saved.
That finally got it to work on logged in and not logged in. A real difficult one though to get right.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: Word Press 'Leaf' Theme issue - logo size

Post by simonmlewis »

The owner of the blog says when he posts something, it automatically gets posted on Facebook and Twitter. Not seen it happen, but he says it does. Problem is, this blog has a 'sub' area to it for another part of the organisation, and that has it's own FB and Twit.

Is there a specific plugin that does this that I can look at to see if there is a way to opt which social Media they go to?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Word Press 'Leaf' Theme issue - logo size

Post by Celauran »

I'd start by checking through the plugins they have installed. Could also be something like IFTTT integration. Too many possibilities for me to even hazard a guess.
Post Reply