-
AuthorPosts
-
July 8, 2020 at 5:15 pm #1228907
I have a CPT and on those pages for the CPTs the mega menu of our website has the empty column header menu entries with the ‘-‘ showing on the front-end.
This is only showing on those CPT pages. The rest of the site’s standard pages and posts don’t have the ‘-‘ show up at all.
Can you adjust the theme to account for CPTs?
See the private content for the URLs of details of where you can see this.
July 15, 2020 at 4:33 am #1230487Hey Michael,
I’m very sorry for the late reply. I tried checking you site yesterday and just now, but it’s not loading on my end. Do you have any geo blocking or similar active on the site?
Best regards,
RikardJuly 15, 2020 at 6:56 pm #1230694Yes unfortunately we have a firewall on our network that blocks any external traffic from specific locations outside the US.
You will have to access it from a proxy route that has an endpoint that resides within the US – my IT department will not change the firewall settings to accommodate anything outside of this scenario.July 17, 2020 at 6:57 am #1231113Hi,
Thanks for the update and info. We have two moderators located in the US, I’ll tag this thread for them.
Best regards,
RikardJuly 17, 2020 at 1:41 pm #1231274Hi,
Sorry for the late reply, I took a look at your page and for your “broken” menu an empty column header is being added which should not be there. If you could adjust your script’s logical to not add these would be best, otherwise to remove these try adding this script to the end of your functions.php file in Appearance > Editor:function custom_script(){ ?> <script> (function($){ $(document).ready(function(){ $( '#menu-item-27209' ).each(function() { $( this ).find( '.mega_menu_title' ).remove(); }); $( '#menu-item-6186' ).each(function() { $( this ).find( '.mega_menu_title' ).remove(); }); $( '#menu-item-27235' ).each(function() { $( this ).find( '.mega_menu_title' ).remove(); }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_script');
I tried first to write this to use
.RegExp()
ornodeType == 3;
to remove these, but I was not successful. It maybe helpful to add a class to these to target these better if you can though your script, but I don’t think this would improve my script that much for these three errors.
So while this is a “simple” solution I believe that it is also the most reliable for this situation.
After applying the script, please clear your browser cache and check.Best regards,
MikeSeptember 9, 2020 at 7:44 pm #1244679I figured out that a locations plugin we were using was altering the title of the current page for use in a vCard option, and that somehow was affecting the megamenu titles.
I’ve since disabled the vCard option as we don’t use it anyhow, and that fixed this problem.You may close the ticket.
September 10, 2020 at 4:25 am #1244723Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Mega Menu Empty Column Headers Showing as '-' on Custom Post Type Pages’ is closed to new replies.