Tomas2011
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to display "subscribe" (membership) checkbox?Yes, great, thanks!
Forum: Fixing WordPress
In reply to: How to make page visible in the menu only if staying at that page?Yees, now we can sing and drink and rejoice!
My blog says big thanks! ??
Tomas
Forum: Fixing WordPress
In reply to: How to make page visible in the menu only if staying at that page?Good and bad news. ??
Now it works for tag and category links.
But for archive month (which is actually more prominent link on my blog than tag/category) – i.e. when I click on “September” – it is still the same.
Not sure given my very basic understanding of these things, but is it perhaps that months (e.g. “2013/09/” in the address, at least that is what is shown in my case) are not treated in the changed statement above, unlike “is_category” and “is_tag”? So – just a non-professional idea – is there something like “is_date” or whatever?
Thank you!
Forum: Fixing WordPress
In reply to: How to make page visible in the menu only if staying at that page?Thank you for your patience.
Forum: Fixing WordPress
In reply to: How to make page visible in the menu only if staying at that page?I apologize but this removes Blog from the top menu even in cases when it was displayed originally, and it doesn’t add it there when clicking on the archive month etc.
Forum: Fixing WordPress
In reply to: How to make page visible in the menu only if staying at that page?I’m sorry for the trouble, but I noticed some odd behaviour in certain scenarios.
When on address myweb.com/blog or myweb.com/blog/postname, all is fine.
But when I click on a month in archive
– so the path is myweb.com/blog/2013/09/on a blog category
– myweb.com/blog/category/nameofthecategory/or on some tag
– myweb.com/blog/tag/nameofthetag/the blog section is then again shown without the Blog in the top menu.
Is there some solution to this? If there can be some hard-coded filter to force the display of “Blog” in the top menu every time when there is /blog/ in the address of a page, that would do. Not sure if that is possible though.
Or, alternatively, isn’t it possible to define a “negative” filter for Blog, so I would make the page _public_ but define that everything with /blog/ in address is hidden in the top menu unless a reader is on a page with /blog/ in the address? That could maybe also solve the “dual” behaviour with months etc. in a more straightforward manner?
Thank you very much!
Forum: Fixing WordPress
In reply to: How to make page visible in the menu only if staying at that page?Yes, this works perfectly, thank you very much! ??
Forum: Fixing WordPress
In reply to: How to make page visible in the menu only if staying at that page?Hi Doug,
Thank you very much! Just take your time, I’m surely not in a position to chase you about a favour. ?? I look forward to the solution.
Forum: Fixing WordPress
In reply to: How to make page visible in the menu only if staying at that page?Yes, I tried and can confirm you are right. ??
But now I’m eager to know about the original issue. ?? Should I install Excl. Pages plugin to start with?
Forum: Fixing WordPress
In reply to: How to make page visible in the menu only if staying at that page?OK these links work, thanks. I have the blog page set as private and can see it (not in the top menu, but via a direct link) when logged out though.
Forum: Fixing WordPress
In reply to: How to make page visible in the menu only if staying at that page?Hello Doug,
I have a static page defined, but I have Welcome page there (I don’t want newcomers who use main domain address – not a blog link – to see my blog). In addition, I see only published pages (i.e. not those private) listed as options for the static page.
Content visiblity link above does not work.
How is it possible then that I can see private page (if I use direct link) when logged out? Can I somehow test if permissions are OK?
Re Exclude Pages – the problem is I don’t want to take the page out of the menu completely. I want it to be there, but only when the reader is on that page.
Example – full top menu in administration could be
Home * Services * Contact * BlogWhen someone lands on my website at top level domain, they will see
Home * Services * ContactWhen someone visits Blog page of my website through a direct link, they will see
Home * Services * Contact * BlogWhen someone visits Blog page and then click e.g. on Home in the top menu, they will again see only
Home * Services * ContactAnyway, maybe I understand it better now. Do you suggest I should install Exclude Pages plugin to have “hidden” option for pages, then define Blog as hidden (and not private), and then add your code?
Forum: Fixing WordPress
In reply to: How to make page visible in the menu only if staying at that page?Hello,
Sorry, but I see no option to make a hidden page. I can have
– public
– password protected
– privateI apologize, I know I used “hidden” above which could be misleading.
However I’m able to see the private Blog page (using the direct link) even if I log out. So I presume anyone can visit it, only it is not shown (as private) in the top menu by default. If this is not true, how (where) do I define “hidden” page then?
I’m not hiding any posts, and I put all posts onto a Blog page.
I will try to explain other way:
On my website, there is a few pages like Welcome, Services, Contact, Blog. Welcome page is represented by Home menu item, and there is a workaround that prevents “dual” displaying of Welcome menu item. Blog page is private and all posts would go there.The only think I need differently is to make Blog section – which is private and which uses /blog/ as part of a permalink – visible in the top menu when someone uses a direct link to the Blog, but invisible when someone comes to the main website. All this in a way that Welcome menu item does not reappear (as described in the post above).
Is it better described now? Can you help me?
Thank you!
Tomas
Forum: Fixing WordPress
In reply to: How to make page visible in the menu only if staying at that page?PS I realized it had one undesired side effect – I have Welcome page, but I have a workaround so that “Home” menu item serves as a link to this Welcome page. So Welcome menu item is invisible. But with the configuration above, when I was on the Home page, both Home and Welcome menu items appeared. ??
So it does something, but – apart from the issue above – I would like to limit this feature only to pages where there are posts. If it can be strictly a condition that the URL/permalink of the page/post have to contain “/blog” for the hidden menu item to appear, that would make me happy. Thanks!
Forum: Fixing WordPress
In reply to: How to make page visible in the menu only if staying at that page?Hello Doug,
Unfortunately that does not work. If I set the page as Private, and go to the URL with blog posts, the page name is not shown in the top menu.
Any other ideas would be much appreciated. Thank you.
Tomas
Forum: Themes and Templates
In reply to: Motion theme by Volcanic – how to change this?OK, I made the editing directly in footer.php and header.php for this theme to eliminate the unwanted items.