Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mouzaia

    (@mouzaia)

    I found the modif to do in tp_navigation.js !
    \\
    if (scroll_top > tp_navigation_offset_top) {
    jQuery(‘#navbar’).css({ ‘position’: ‘fixed’, ‘top’:0 });
    jQuery(‘#navbar’).css({ ‘background’: ‘url(“wp-content/plugins/tp-navigation-menu/css/brown-2.png”) repeat scroll 0 0 transparent’ });
    jQuery(‘#navbar’).css({ ‘box-shadow’: ‘0 0 5px #999999’ });
    ====>>> jQuery(‘#navbar’).css({ ‘background’: ‘#FFFFFF’ });
    } else {
    jQuery(‘#navbar’).css({ ‘position’: ‘relative’ });
    jQuery(‘#navbar’).css({ ‘background’: ‘#F7F5E7’ });
    jQuery(‘#navbar’).css({ ‘box-shadow’: ‘none’ });
    }
    \\

    Thread Starter mouzaia

    (@mouzaia)

    Hello,

    In your index.php, there is a $file with a double //:

    $file = plugin_dir_path(__FILE__) . $file_path;
    So I add this:
    $file = str_replace(“//”,”/”,$file);

    In fact I would like to have the
    ====>>> jQuery(‘#navbar’).css({ ‘background’: ‘#FFFFFF’ });
    above automatically filled with the color of my main navbar. But i am not as good as you with js.

    Best Regards

    Thread Starter mouzaia

    (@mouzaia)

    Me again, for the last time ??

    if (scroll_top > tp_navigation_offset_top) {
    			jQuery('#navbar').css({ 'position': 'fixed', 'top':0 });
    			jQuery('#navbar').css({ 'box-shadow': '0 0 50px #999999' });
    		} else {
    			jQuery('#navbar').css({ 'position': 'relative' });
    			jQuery('#navbar').css({ 'box-shadow': 'none' });
    		}

    works perfectly !

    Then the color is the default one of the menu.

    Plugin Author pey22

    (@pey22)

    Hello mouzaia
    I’m glad you liked it and solved the problem.
    Feel free to contact me if you need help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘transparency’ is closed to new replies.