johnwmcc
Forum Replies Created
-
I can’t answer this for you. But I think you would be more likely to get a useful response by starting a new thread – you don’t have the same issue as I did.
John McC
Forum: Themes and Templates
In reply to: How do I remove the sidebar from blog page in Twenty Fourteen?That’s very interesting, and I might well try the Responsive theme. I think I should be able to manage that myself, but thank you very much both for your input here, and for your offer to help me try out the Responsive theme.
I guess I’d have to re-code almost all the Child Theme CSS though.
On other pages, the Twenty Fourteen Full Width page DOES work, using the Fourteen Extended plugin – so long as you use both the Full Width page template AND check the box in the Edit Page dialogue that Fourteen Extended adds: “Set Page to True Full Width”.
Won’t have time for a while to follow this up in full, but I’ll try your CSS later today or this evening (UK time).
John McC
Forum: Themes and Templates
In reply to: How do I remove the sidebar from blog page in Twenty Fourteen?I’ve tried this quickly, and it works fine for the ‘blog’ page:
http://kiidstrust.dyndns.org/index.php/blog/But it doesn’t have any effect on the page you get to by clicking on the blog entry on the home page, which is (for the first item):
http://kiidstrust.dyndns.org/index.php/mardys-take-on-the-iid/As I can’t see the webmaster adding similar code for each individual post page, can you suggest any other solution that would automatically apply to all new (and old) posts?
Have I got something wrong with the structure of the site? I’m using the plugin Recent Posts Widget Extended to put the posts into the front page Latest News column.
John McC
Forum: Themes and Templates
In reply to: How do I remove the sidebar from blog page in Twenty Fourteen?Thank you so much. That’s just the effect I wanted.
Is there in effect a ‘bug’ in the theme? Shouldn’t what I did in the Admin interface have done what I thought it should? If that’s the case, how can I draw it to the attention of the theme’s authors?
Anyway, I hope to have time to add that to the child theme CSS later today.
I was vaguely aware that I might need to add display:none; somewhere, but had no real idea how to deal with the consequences on page layout. So double thanks for that.
John McC
Forum: Themes and Templates
In reply to: How do I remove the sidebar from blog page in Twenty Fourteen?So sorry – I should have done that first off.
It’s a temporary url for testing before the site goes live on a permanent host:
That’s not a typo – there are two ‘ii’s in kiids – you’ll see why when you see the site.
There’s no menu link to the blog page, but you can get to it by clicking on a post on the front page, or go direct to:
http://kiidstrust.dyndns.org/index.php/blog/
HMMM. I see when I look again at the page you get to from clicking on a front page post that it isn’t the same page. That is (from the first front-page posting):
http://kiidstrust.dyndns.org/index.php/mardys-take-on-the-iid/
But they both have the same problem. And I would like to fix both.
John McC
Further reflection:
Why does this work? I mistakenly thought my mobile screen in portrait mode was 1024px wide, hence my choice of min-width as 1025px.
But it isn’t: it’s 1080 x 1920 px. And anyway, I had almost the same problem in landscape orientation, on both mobile phone and iPad mini, which has a 768 x 1024px screen.
So why does this min-width work at all on the mobile phone?
How does the server know it’s a mobile if not from the screen width? I know the ‘browser-agent’ may tell it, but many phones now pretend to be ‘desktops’ don’t they?
Not critical, now I have an apparent fix, but I’d really like to understand why it works at all.
Brilliant – thank you so much. That’s fixed it. I moved the menu settings in the Child theme to apply only to screen width over 1025px, like this:
/* Move main menu bar container but only for desktop width browser*/ @media screen and (min-width:1025px) { #primary-navigation { position: relative; top:-7em; left: 40em; } }It might need a little refinement after testing on other mobiles, but it works on both my iPad and my mobile phone. The content has expanded to the full mobile screen width, and the three-line menu button is now visible top right as desired.
It works as originally intended on the desktop.
Thanks very much indeed.
How did you know that this was the cause?
John McC
Thanks for the suggestion. I’ll try that, see what happens, and report back whether it is the solution.
Forum: Themes and Templates
In reply to: TwentyFourteen – how to change submenu background?Thanks again. I have’t time just at the moment to look, but hope to do so out of curiosity soon.
John
Forum: Themes and Templates
In reply to: TwentyFourteen – how to change submenu background?Brilliant. Thank you. That’s given me the lead I needed.
Where on earth might I have looked this up? It seems not at all obvious, and the information doesn’t seem to show in the Web Developer tools or information.
It seems to work ok without
!important.I hadn’t realised that so many of these styles were ‘added from the back-end’. Where is that done? In the PHP code of the relevant pages in the theme? Or in the original WP source code? I can look in future in the View Source output, so thanks too for that general observation.
Thanks again for your help.
John McC
Forum: Themes and Templates
In reply to: TwentyFourteen – how to change submenu background?Thank you so much for such a prompt and helpful reply.
The (very much new, incomplete, and evolving temporary) site url is http://kiidstrust.dyndns.org.
I’ve tried using the Chrome Web Developer tools equivalent of Firebug to see what class or id to use to style the menu elements, but get somewhat confusing results.
For example, the first submenu element (Hygiene) of Projects shows
#menu-item-39.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-39when I select ‘Display ID and Class information’. I can see this is an id reference, and a very long one. And it only refers to one sub-menu element, so wouldn’t be a candidate for styling via CSS, as I’d want to refer to all sub-menu items in one go.If I choose instead to ‘Display Element Information’ and choose the same item, I get Ancestors:
nav#primary-navigation.site-navigation.primary-navigation div.menu-main-container ul#menu-main.nav-menu li#menu-item-27.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-has-children.menu-item-27 ul.sub-menu li#menu-item-39.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-39which suggests that CSS referring to either
ul#menu-main.nav-menuor more likelyul.sub-menumight be the place to modify the appearance.But I can’t find any reference in the theme’s own
style.cssfile to either of these. So where is the plain orange background (that I want to get rid of) for these elements coming from?Should I just add such an entry in my Child theme
style.css?Thanks again if you can help further.
John McC
PS. Just tried setting this in the child theme CSS
style.cssfileul.sub-menu { background-color:#00FF00; /* a vicious green, to show up */ }but it makes no difference.
Forum: Plugins
In reply to: Featured Content tag misunderstood or not workingI’m still very new to the use of WordPress Featured Content. I’m not even quite sure how it is supposed to work.
What I wanted (I think) was for Featured Content (i.e., posts tagged with ‘featured’ or whatever is chosen instead) to appear on a blog page, but not on the Front Page.
Is that possible?
As for Sticky Posts, I haven’t figured out yet how to make a post ‘sticky’, so I haven’t got any yet. But I’ve just looked up how to make a post Sticky.
Forum: Plugins
In reply to: [Fourteen Extended] Featured content tag ignoredThis is where it ended up. If it’s in the wrong place, please move it:
Forum: Plugins
In reply to: [Fourteen Extended] Featured content tag ignoredSorry, just finished the other post – hope you can see it now
Forum: Plugins
In reply to: [Fourteen Extended] Featured content tag ignoredSeparate post opened as requested.