Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
mkastrupsen
tagDiv Member

Hi again. I can now confirm the error messages have nothing to do with our plugins installed. I have deactivated all and still get the error message. It’s definitely tagDiv related.

mkastrupsen
tagDiv Member

The weird thing is that we are not running any new plugins since we got those error messages, but i’ll try to disable some of then to get to the bottom of it.

mkastrupsen
tagDiv Member

When disabling autooptimize i get the same errors. See screenshot of error here: https://www.dropbox.com/s/fg2cntik8tdv4el/Sk%C3%A6rmbillede%202017-09-20%2012.25.41.png?dl=0

It points to this line of code:

(b+=tdAffix.menu_offset));”undefined”!==typeof window.tdThemeName&&”Newspaper”===window.tdThemeName&&(b+=20);var d=””;a!==tdSmartSidebar.scroll_window_scrollTop_last&&(d=a>tdSmartSidebar.scroll_window_scrollTop_last?”down”:”up”);tdSmartSidebar.scroll_window_scrollTop_last=a;var e=jQuery(window).height(),f=a+e;a+=b;for(var l=0;l<tdSmartSidebar.items.length;l++){var g=tdSmartSidebar.items[l];g.content_top=g.content_jquery_obj.offset().top;g.content_height=g.content_jquery_obj.height();g.content_bottom=….keeps going here

See another screenshot here: https://www.dropbox.com/s/dwuhyp56wo0ja4d/Sk%C3%A6rmbillede%202017-09-20%2012.29.20.png?dl=0

mkastrupsen
tagDiv Member

Yes it doesn’t have anything to do with autooptimize. The erros are still there when disabling the plugin, but instead referring to a tagdiv file.

mkastrupsen
tagDiv Member

This error message also comes up: Uncaught SyntaxError: Unexpected token <

mkastrupsen
tagDiv Member

Hi,
Your suggestion seems to be working A LOT better. Thanks!

mkastrupsen
tagDiv Member

Hi. Can you just take a look at the video? You can view the site now also.

mkastrupsen
tagDiv Member

Hi. That worked, but there is a problem when scrolling. See this short vidoe i made: https://www.youtube.com/watch?v=1_kRyXGs5Vk

Can you help with that?

mkastrupsen
tagDiv Member

Having the top menu display on mobile when tapping the 3 horizontal lines in the upper left corner on mobile to show the main menu on mobile would totally work.
How can i do that? It’s viteea.com
I want the top bar from the desktop version top be displayed where i just mentioned above.

mkastrupsen
tagDiv Member

Is there a way to show a different main menu when it’s viewed on a mobile phone without using the mobile theme plugin?

I need to be either able to show the top bar on mobile without the mobile theme plugin, or show a different main menu on the mobile version.

I had to disable the mobile theme plugin since you said it doesn’t work with shortcodes. I’m using a membership plugin that uses shortcodes which won’t show using the mobile theme plugin.

mkastrupsen
tagDiv Member

Thanks. That worked 🙂

Another question. I just installed the mobile theme plugin, and some of the sites do not show. I use a membership plugin and that page is completely empty on the mobile version now. I’m using a child theme if that makes any difference.
What could be going on?

mkastrupsen
tagDiv Member

Update:
I have tried following some of the links you sent but the screenshots doesnt work anymore.

I have registered the menus in td_menu.php like this:
https://www.screencast.com/t/WvDlzfNLcJc

Then i assigned the menus to the locations in the Menu Locations panel in wordpress.

So now, where and how do i call them?

I tried calling this in the top-header.php (the condition i check is for a member, and that works. It’s only the code inside the conditional statement that’s not working):


<code>
if( SwpmMemberUtils::is_member_logged_in() ) { 
    wp_nav_menu(array( 'theme_location' => 'Top-Bar-Menu-Logged-In', 
    'menu_class'=> 'sf-menu', 
    'fallback_cb' => 'td_wp_page_menu', 
    'walker' => new td_tagdiv_walker_nav_menu() 
    )); 
} else { 
    wp_nav_menu(array( 'theme_location' => 'Top-Bar-Menu-Logged-Out', 
    'menu_class'=> 'sf-menu', 
    'fallback_cb' => 'td_wp_page_menu', 
    'walker' => new td_tagdiv_walker_nav_menu() 
    )); 
}
</code>

Does not work. What do i do wrong?

mkastrupsen
tagDiv Member

Hi
Thanks for the reply. I’m still unsure on how to call the top menu and set a different menu to it?
I’m using a child theme if that changes anything. I’m calling the code below in functions.php.

I tried this:


function my_wp_nav_menu_args( $args = '' ) {

if( SwpmMemberUtils::is_member_logged_in() ) { 
	$args['tds_top_menu'] = 'Top-Bar-Menu-Logged-In';
	
	echo "Logged in";
} else { 
	$args['tds_top_menu'] = 'Top-Bar-Menu-Logged-Out';
	echo "Logged out";
} 
	return $args;
}
add_filter( 'wp_nav_menu_args', 'my_wp_nav_menu_args' );
Viewing 13 posts - 1 through 13 (of 13 total)