plimfec
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Eleven] single posts with sidebarI use the method below to add the sidebar to both pages and single posts in Twenty Eleven. No need for a plugin and thanks to the use of a child theme it remains intact after updating.
1.
Create a child theme containing functions.php, page.php, and single.php.2.
Add this code to functions.php:// Twenty Eleven - Show sidebar on pages and single posts as well
add_filter('body_class', 'fix_body_class_for_sidebar', 20, 2);
function fix_body_class_for_sidebar($wp_classes, $extra_classes) {
if( is_single() || is_page() ){
if (in_array('singular',$wp_classes)){
foreach($wp_classes as $key => $value) {
if ($value == 'singular')
unset($wp_classes[$key]);
}
}
}
return array_merge($wp_classes, (array) $extra_classes);
}3.
Add this call for the sidebar at the bottom of the files page.php and single.php (just above the call for the footer):<?php get_sidebar(); ?>4.
Done.Hi @anupamkhatua,
No problem. I updated to version 5.7.53.1 and noticed the inline CSS from version 5.7.51 is back in place. So I can confirm the security field is hidden again in this new version. Problem solved.
Thanks very much for your efforts and keeping me informed.
I’ll mark this issue as resolved.Best regards,
PlimfecHi @anupamkhatua,
Thanks very much for your reply.
I did update to 5.7.53, but unfortunately the security field is still displayed at the frontend. I’m running the latest version of WordPress (6.7.2) and tested this in Twenty Twenty-Five as well.
For now I manually added your removed CSS code from version 5.7.51 (see bold section in my first post) to my child theme.
This way:
[aria-hidden="true"] .es_required_field {
position: absolute;
top: -99999px;
left: -99999px;
z-index: -99;
}This hides the extra field, but of course just for me as a workaround. Other users might still face the problem.
In case you need additional info to help solve this, please let me know.
Best regards,
PlimfecHi @anupamkhatua,
No problem, you’re welcome.
Thanks for the upcoming quick fix!Best regards,
PlimfecForum: Themes and Templates
In reply to: [Twenty Eleven] Hamburger MenuYou could use this plugin for that:
https://wordpress.org/plugins/responsive-menu/Forum: Themes and Templates
In reply to: [Himalayas] Hamburger menuHi @jackiecraven,
If you have FTP access to your website, just replace the himalayas.js file using FTP.
1)
Download the Himalayas theme and unpack it.
Path to himalayas.js file is:himalayas.1.3.0 > himalayas > js > himalayas.js
2)
Open the himalayas.js file and run a search for:jQuery( window ).on( 'load', function () {Replace this line with the one given by @lorenzoing1:
jQuery( document ).ready( function () {3)
Save the file and use FTP to upload your modified himalayas.js to its right location on the server. Which is:wp-content > themes > himalayas > js
4)
Done.Finally save your modified himalayas.js locally, so that after any update of Himalayas in which the problem is not fixed, you can once again fix it yourself easily.
Good luck,
PlimfecForum: Themes and Templates
In reply to: [Himalayas] hamburger menu on mobile does not workHi @jessicagertrud or anyone else facing this same problem with the hamburger menu in Himalayas, see this post for the solution:
https://wordpress.org/support/topic/hamburger-menu-18/page/2/#post-17140393
Forum: Themes and Templates
In reply to: [Himalayas] Hamburger menuHi there @lorenzoing1,
I was facing this same problem. Spent a few hours trying to solve it until I came across your post. Thanks very much for sharing your solution!!! Finally the hamburger menu is working again.
What I can’t understand:
- Why didn’t Himalayas / @barsha04 even thank you for all your work and the solution you provided for this very serious problem?
- Why, after all these months, is the non-working code still offered for download by Himalayas?
Anyway, thanks again, you saved my day. Good job!
Plimfec
I still haven’t got any feedback from the site owner, so I don’t have a clue a disabled WP-Cron was actually the cause. I suppose it was.
Somebody already marked this issue as resolved; seems fine to me.
Thanks for your help @patrickposner & best regards,
PlimfecHi @patrickposner,
Thank you very much. I have passed on your reply, but unfortunately I don’t have any feedback yet.
I keep you posted.
For others facing the same problem:
I was using a function in my child theme’s functions.php to alphabetize product meta ‘categories’ on single product pages and apparently that function was causing the problems. Maybe there was a flaw in the code.
After removing the function from my functions.php, Rank Math did display both main and child categories in the breadcrumbs.
Hi @rankmath,
Yes, I understand your screencast was not taken from my own Dashboard, that would be quite alarming, wouldn’t it? π
I thought you visited my front-end and concluded “it’s working fine on our end”, my misunderstanding.
Sure, I can open a topic on your website about the issue, no problem.
Thank you and see you there,
PlimfecHi @rankmath,
Thanks for your reply.
Like I wrote in my last message:
The breadcrumbs you see on my website right now, come from the plugin Breadcrumb NavXT (pages, posts) and Woocommerce (product pages).That’s why it is looking fine on your end at the moment I suppose: the current breadcrumbs are not handled by Rank Math. I had to do this to prevent too many Google penalties for my shop pages and of course for my visitors.
—
According to your first clip: yes, all settings are (and were) in the right place. Like I wrote:
Activated by the switch:
β Rank Math > General settings > Breadcrumbs > Show categoriesSelected βCategoriesβ here:
β Rank Math > Titles & Meta > Post Types > Posts > Primary Taxonomy > Categories`I made the child category primary as well. But even the main category is not displayed in the Rank Math breadcrumbs (not for posts and not for products).
When there is no child category and just one main category, it’s not displayed neither.
—
Yes, WordPress, template and all plugins are updated to the last versions.
—
I ran the recommended plugin Site Health. Site Health Status gave me ‘no issues’. While in troubleshooting mode I got nothing than ‘site failures’. I therefore could not use the plugin. I couldn’t even switch on the theme twentytwentyone..
—
Last days I validated again in Google Search Console (with Rank Math plugin running but with the Rank Math breadcrumbs switched off), and today I received the message that the validation had (partly) failed.
Please look at the errors I posted before: https://i.imgur.com/Z7n0VGX.png
The pages were crawled by Google while the Rank Math breadcrumbs were switched off. That’s very weird in my opinion. But apparently the Rank Math schema still is picked up by Google?
All errors are about empty fields for the category (main and child) in the Rank Math section inside the code.
—
Google Search Console errors:
Failed validation (today):
– Either ‘name’ or ‘item.name’ should be specified
– Invalid object type for field ‘item’
– Incorrect value type ‘@id’Still in validation today:
– data-vocabulary.org schema deprecated
– Missing field ‘itemListElement’—
I hope you can find out why Google is not detecting (main and child) categories in the Rank Math code / schema.
Thanks for your time again.
I switched off the Rank Math breadcrumbs for now, because last hours I got several emails from Google Search Console about problems (errors).
I tested my pages in https://search.google.com/test/rich-results with the Rank Math breadcrumbs switched on and got these errors (screenshot). All related to the categories problem, as far as I can understand (for posts as well as single product pages).
I switched off the Rank Math breadcrumbs and Google did not show any errors anymore.
—
If you wish, I will switch the Rank Math breadcrums back on again. Preferably not for too long, to prevent Google giving penalties for my shop pages..
—
Thanks!
—
PS: The breadcrumbs you see on my website now, come from the plugin Breadcrumb NavXT (pages, posts) and Woocommerce (product pages).
Somebody marked this thread as resolved, but it is not. There are several questions unanswered and my problem still exists.