Title: Hardhat's Replies | WordPress.org

---

# Hardhat

  [  ](https://wordpress.org/support/users/hardhat/)

 *   [Profile](https://wordpress.org/support/users/hardhat/)
 *   [Topics Started](https://wordpress.org/support/users/hardhat/topics/)
 *   [Replies Created](https://wordpress.org/support/users/hardhat/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/hardhat/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/hardhat/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/hardhat/engagements/)
 *   [Favorites](https://wordpress.org/support/users/hardhat/favorites/)

 Search replies:

## Forum Replies Created

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

1 [2](https://wordpress.org/support/users/hardhat/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/hardhat/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Yoast won’t load with WP 6.7.1](https://wordpress.org/support/topic/yoast-wont-load-with-wp-6-7-1/)
 *  [Hardhat](https://wordpress.org/support/users/hardhat/)
 * (@hardhat)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/yoast-wont-load-with-wp-6-7-1/#post-18156044)
 * Same issue here too.
 * Plugin panel will not display/reveal on pages where it is installed.
 * Have tried plugin conflict tests: no conflicts found.
 * Seems to be combination of WP 6.7.1 and Yoast 23.9
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Contact form 7 v5.5 and WP 5.7: forms will no longer send](https://wordpress.org/support/topic/contact-form-7-v5-5-and-wp-5-7-forms-will-no-longer-send/)
 *  Thread Starter [Hardhat](https://wordpress.org/support/users/hardhat/)
 * (@hardhat)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/contact-form-7-v5-5-and-wp-5-7-forms-will-no-longer-send/#post-14254318)
 * Update:
 * Have added a paid Akismet subscription (just in case it’s a SPAM issue) and changed
   the form layouts and – for now – they’re working again.
    Will update again if
   they fail. Very frustrating though…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Contact form 7 v5.5 and WP 5.7: forms will no longer send](https://wordpress.org/support/topic/contact-form-7-v5-5-and-wp-5-7-forms-will-no-longer-send/)
 *  Thread Starter [Hardhat](https://wordpress.org/support/users/hardhat/)
 * (@hardhat)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/contact-form-7-v5-5-and-wp-5-7-forms-will-no-longer-send/#post-14253659)
 * HI
 * Well, the forms have stopped working again.
 * The theme and plugins remains the same.
 * I’ve tried activating the default theme and the error persists.
 * Sometimes I get a “There was an error trying to send your message. Please try
   again later.” message.
 * Any suggestions?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Contact form 7 v5.5 and WP 5.7: forms will no longer send](https://wordpress.org/support/topic/contact-form-7-v5-5-and-wp-5-7-forms-will-no-longer-send/)
 *  Thread Starter [Hardhat](https://wordpress.org/support/users/hardhat/)
 * (@hardhat)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/contact-form-7-v5-5-and-wp-5-7-forms-will-no-longer-send/#post-14221904)
 * Hi TM
    This is very weird. All the forms have started working again. And yet 
   all the forms were definitely not working yesterday. I’ve no explanation for 
   this.
 * To answer your query, all my sites (around 25 of them) are based on the ‘Create’
   theme by Themetrust.com
 * Most have the same list of plugins:
    Black Studio TinyMCE Widget Custom Adobe
   Fonts (Typekit) Easy FancyBox GDPR Cookie Consent Banner Heartbeat Control by
   WP Rocket Loginizer Media Library Assistant Rocket Maintenance Mode & Coming 
   Soon Page Builder Site Kit by Google SiteOrigin Widgets Bundle Slider Revolution
   Social Share Buttons & Analytics by GetSocial.io SVG Support UpdraftPlus – Backup/
   Restore Wordfence Security WP Fastest Cache Yoast Duplicate Post Yoast SEO
 * Both the theme and all plugins use the very latest versions.
    I don’t know if
   that helps.
 * I don’t know if they’ll go offline again today.
    Will monitor them closely for
   the next couple of days.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wordfence Security - Firewall, Malware Scan, and Login Security] Point release 6.1.4 is live today](https://wordpress.org/support/topic/point-release-614-is-live-today/)
 *  [Hardhat](https://wordpress.org/support/users/hardhat/)
 * (@hardhat)
 * [10 years ago](https://wordpress.org/support/topic/point-release-614-is-live-today/#post-7301612)
 * Just to confirm, I’m having the same widgets issue.
 * I’m using a ThemeTrust theme, Page Builder and Site Origins Widgets Bundle.
 * I’ve also discovered that I have to disable WordFence temporarily if I want to
   edit my widgets. This only seems to have happened since the latest WF update.
 * Cheers
 * H
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Quick php question: exclude pages from sidebar list](https://wordpress.org/support/topic/quick-php-question-exclude-pages-from-sidebar-list/)
 *  Thread Starter [Hardhat](https://wordpress.org/support/users/hardhat/)
 * (@hardhat)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/quick-php-question-exclude-pages-from-sidebar-list/#post-860963)
 * OK chums
 * I get the whole ‘learn by digging’ thing too, but, considering this is my day
   off I guess maybe I was being somewhat lazy… 🙂
 * Alright, as a non-PHP savvy guy let me try this one on you:
 * As I’m using a hacked-about version of an Andreas Wiklund template, I have another
   string of PHP in my page template (as opposed to theheader template code I mentioned
   at the start of this post).
 * The code runs:
 * `<?php list_subpages_andreas01(); ?> <?php // This generates the subpage menu.
   If you don't want to use it, delete this line. ?>`
 * Now, Was I on the right track with the original code block, or is this the block
   that requires adjustment?
 * Please note: (if it makes any difference) that it is my right-hand sub-page menu,
   as opposed to my left-hand main menu that I’m trying to exclude certain pages
   from
 * H
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Quick php question: exclude pages from sidebar list](https://wordpress.org/support/topic/quick-php-question-exclude-pages-from-sidebar-list/)
 *  Thread Starter [Hardhat](https://wordpress.org/support/users/hardhat/)
 * (@hardhat)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/quick-php-question-exclude-pages-from-sidebar-list/#post-860952)
 * Hi G
 * Sorry to contradict, but, no, I don’t use widgets.
 * I’ve got the whole “list except these few” thing but, as I’m not a PHP-happy 
   coder, I don’t know how to incorporate that request into my existing template
   without destroying the existing functionality.
 * Again, at the risk of seeming a little pushy, I’m just hoping for someone who’s
   PHP-savvy to just show me the adjusted code – amended from the block I supplied–
   to incorporate back into my template.
 * Again, all help appreciated.
 * H
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Quick php question: exclude pages from sidebar list](https://wordpress.org/support/topic/quick-php-question-exclude-pages-from-sidebar-list/)
 *  Thread Starter [Hardhat](https://wordpress.org/support/users/hardhat/)
 * (@hardhat)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/quick-php-question-exclude-pages-from-sidebar-list/#post-860931)
 * Hi G
 * I read it, but am having difficulty trying to figure out exactly where to put
   the ‘exclude’.
 * Told you I was a newbie.
 * Can any kind soul just give me some code on this?
 * H
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to restrict number of comments per post or page?](https://wordpress.org/support/topic/how-to-restrict-number-of-comments-per-post-or-page/)
 *  Thread Starter [Hardhat](https://wordpress.org/support/users/hardhat/)
 * (@hardhat)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/how-to-restrict-number-of-comments-per-post-or-page/#post-847554)
 * That plugin works a treat!
 * File this under [resolved] !
 * H 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to restrict number of comments per post or page?](https://wordpress.org/support/topic/how-to-restrict-number-of-comments-per-post-or-page/)
 *  Thread Starter [Hardhat](https://wordpress.org/support/users/hardhat/)
 * (@hardhat)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/how-to-restrict-number-of-comments-per-post-or-page/#post-847505)
 * Groovy!
 * Thanks for the nod DD.
 * I’ll try it out.
 * Cheers
 * H 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to hide child pages in submenu?](https://wordpress.org/support/topic/how-to-hide-child-pages-in-submenu/)
 *  Thread Starter [Hardhat](https://wordpress.org/support/users/hardhat/)
 * (@hardhat)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/how-to-hide-child-pages-in-submenu/#post-846848)
 * And, in a moment of low wattage intelligence, I answered my own question!
 * The easiest solution is to use a CSS rule to hide the offending child pages.
 * To illustrate: in my original css the rule that contained the styling for the
   second-child links read:
 * `#subpages ul.submenu li ul li a{ color: #7d6f61; background-color: #f4f2e2; 
   text-transform: lowercase; text-align: right; margin-left: -1em; padding: 3px
   5px 3px 3px; border-right: 4px solid #f90; border-left-width: 0; }`
 * By changing the `display` property to `none`, the offending links vanished. The
   final rule simply reads:
 * `#subpages ul.submenu li ul li a{ display: none; }`
 * Voila!
 * File under ‘hiding in plain sight’!
 * Many thx to Langsuyar for the earlier help.
 * H 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to hide child pages in submenu?](https://wordpress.org/support/topic/how-to-hide-child-pages-in-submenu/)
 *  Thread Starter [Hardhat](https://wordpress.org/support/users/hardhat/)
 * (@hardhat)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/how-to-hide-child-pages-in-submenu/#post-846842)
 * OK. I’ve looked into things a bit further and think I realise what the real problem
   is.
 * As far as I can work out the theme is doing exactly what it should do in terms
   of defining the `$depth` for child pages. All of the various functions within
   the theme (ie: list subpages, etc) are contained within a `functions.php` file.
 * The problem I face is that I think I may not have defined the problem accurately.
 * My real problem is to **not** show _**secondary**_ child pages on only _**certain**_
   top level parent pages.
 * I suppose the question I’m asking is: is it possible to write a one-off rule (
   be php or CSS) that I can incorporate into certain template pages to **not** 
   show the secondary children pages? The idea is that, by using a separate template
   page, the secondary children would then be shown on any first-level child page
   that is viewed.
 * Hope that makes sense! lol
 * Again, any input appreciated.
 * H 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to hide child pages in submenu?](https://wordpress.org/support/topic/how-to-hide-child-pages-in-submenu/)
 *  Thread Starter [Hardhat](https://wordpress.org/support/users/hardhat/)
 * (@hardhat)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/how-to-hide-child-pages-in-submenu/#post-846759)
 * Thanks for the tips L.
 * I’ll give it a go and report back.
 * Best wishes.
 * H 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to hide child pages in submenu?](https://wordpress.org/support/topic/how-to-hide-child-pages-in-submenu/)
 *  Thread Starter [Hardhat](https://wordpress.org/support/users/hardhat/)
 * (@hardhat)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/how-to-hide-child-pages-in-submenu/#post-846731)
 * Hi Langsuyar
 * The code you supplied worked exactly as I’d hoped, hiding the child pages for
   subpages…except if hides the child pages when you click on anyone of those subpage
   links. In other words, it’s an ‘all or nothing’ global rule).
 * Any idea how I can make it more granular?
 * If not, whereabout is the code would be the best place to look for, or define,
   the `$depth` for a particular template?
 * Best wishes
 * H 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Static homepage menu question](https://wordpress.org/support/topic/static-homepage-menu-question/)
 *  Thread Starter [Hardhat](https://wordpress.org/support/users/hardhat/)
 * (@hardhat)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/static-homepage-menu-question/#post-536378)
 * **d**: couldn’t agree more. 🙂
 * I suppose the only thing I’d add before wrapping this up is that the possible
   issue with legacy themes not supporting static homepages without tweaking should
   be Codex’d.
 * Just FYI
 * Thanks all
 * **Hardhat**

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

1 [2](https://wordpress.org/support/users/hardhat/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/hardhat/replies/page/2/?output_format=md)