B Powell
asked 10 years ago

Hi, hope you can help
I’ve temporarily installed the WordPress DW Page theme here – http://republic.gallery
1 – The WordPress admin menu/toolbar is not visible when viewing the site
2 – When viewing on mobile devices (specifically iPhone) the extras menu dropdown items do not link to pages (this is the case for landing page template and default template)
3  – Having said this when using the default template, and viewing on devices – the primary menu dropdown links do work – however this function is not available for the landing page template. As you can see from the site its only a few pages and the landing page template serves the design best.
I’ve applied the landing page menu fix as detailed here in the hope it would fix the issues (although primary menu is turned off at the moment)

Why hides the main navigation, the drop-down menu?


DM me for temporary site access – ty

2 Answers
DominicStaff
answered 10 years ago

The WordPress admin menu/toolbar is not visible when viewing the site.
To resolve this issue, you can open inc/framework.php line 32
Replace the following code:

add_filter('show_admin_bar', '__return_false');

With new code:

//add_filter('show_admin_bar', '__return_false');

When viewing on mobile devices (specifically iPhone) the extras menu dropdown items do not link to pages (this is the case for landing page template and default template)
You can send me username & password of your site (via private answer) for further checking.
If you have any question, please let me know.

B Powell
replied 10 years ago

The fix for the WP-Admin menu worked great – thanks

Wilfred
answered 10 years ago

To resolve this issue please follow my instruction here:
1. Open landing.js file in /wp-content/themes/dw-page/inc/assets/js/landing.js
2. Replace following code – from line 5 to line 10

var dateStr=$('#countdown').attr('data-until'); //returned from mysql timestamp/datetime field
var a=dateStr.split(" ");
var d=a[0].split("-");
var t=a[1].split(":");
var counto = new Date(d[0],(d[1]-1),d[2],t[0],t[1],t[2]);
$('#countdown').countdown({until: counto});

with:

if ( $('#countdown').length ) {
var dateStr=$('#countdown').attr('data-until'); //returned from mysql timestamp/datetime field
var a=dateStr.split(" ");
var d=a[0].split("-");
var t=a[1].split(":");
var counto = new Date(d[0],(d[1]-1),d[2],t[0],t[1],t[2]);
$('#countdown').countdown({until: counto});
};

Hope this helps!

Powered by DW Question & Answer Pro