McLarenDan
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Dropdowns showing on page loadI wish I knew why, then I could fix it – it’s very frustrating and I’m pulling my hair out over it.
Thank you for taking the time to reply btw, it was greatly appreciated.
Forum: Fixing WordPress
In reply to: Dropdowns showing on page loadActually, spotted a mistake – I’ve just added a visible class, after a hidden class *facepalm*
Here is the updated (still not working) versions:
<script> $(document).on("pagebeforeload",function(){ $('.navbar ul li:has(ul)').addClass('hidden-element'); $('.navbar navbar-collapse ul:has(li)').addClass('hidden-element'); $('.navbar ul li ul:has(li)').addClass('hidden-element'); $('.navbar ul li ul li:has(div)').addClass('hidden-element'); }); $(document).on("pageload",function(){ $('.navbar ul li:has(ul)').removeClass('hidden-element'); $('.navbar navbar-collapse ul:has(li)').removeClass('hidden-element'); $('.navbar ul li ul:has(li)').removeClass('hidden-element'); $('.navbar ul li ul li:has(div)').removeClass('hidden-element'); }); </script> <style> .hidden-element {display:none!important;} </style>
Forum: Fixing WordPress
In reply to: Dropdowns showing on page loadHI @andrew Nevins
I’m not a coding pro, unfortunately… I’ve added this, without result:
<script> $(document).on("pagebeforeload",function(){ $('.navbar ul li:has(ul)').addClass('dropdown-hidden'); $('.navbar navbar-collapse ul:has(li)').addClass('dropdown-menu-hidden'); $('.navbar ul li ul:has(li)').addClass('dropdown-menu-hidden'); $('.navbar ul li ul li:has(div)').addClass('yamm-content-hidden'); }); $(document).on("pageload",function(){ $('.navbar ul li:has(ul)').addClass('dropdown-visible'); $('.navbar navbar-collapse ul:has(li)').addClass('dropdown-menu-visible'); $('.navbar ul li ul:has(li)').addClass('dropdown-menu-visible'); $('.navbar ul li ul li:has(div)').addClass('yamm-content-visible'); }); </script> <style> .dropdown-hidden {display:none;} .dropdown-menu-hidden {display:none;} .yamm-content-hidden {display:none;} .dropdown-visible {display:inline;} .dropdown-menu-visible {display:inline;} .yamm-content-visible {display:inline;} </style>
Forum: Plugins
In reply to: [Polylang] How to use the same slug for categories ?Any joy?
Forum: Plugins
In reply to: [Lead info with country for Contact Form 7] Incorrect Tracking informationTa muchly!
Forum: Fixing WordPress
In reply to: Display "next post title" as the textAny ideas folks?
Forum: Fixing WordPress
In reply to: Display "next post title" as the textJust to also note – I’d like to display the Previous posts title too:
<?php previous_post_link('<strong>%link</strong>',__('<div class="col-md-12 padtop20 martop10 padbot20 white_txt bold center green_bg">‹ Previous business lever</div>'), TRUE); ?>
^^ is my current code for “Previous Posts”
Forum: Plugins
In reply to: [Yoast SEO] homepage description not working, pulling page contentAvoid the paid version mate, the support is poor atm.
No reply – yet purchased premium product? AWESOME !
Forum: Plugins
In reply to: [Yoast SEO] Meta Descriptions Titles not showing in Sourcethis is sorted.