Posts by webdesignerart

1678 posts
  • Has been part of the Envato Community for over 4 years
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
webdesignerart says

Iz there Anyone, who can help me.

1678 posts
  • Has been part of the Envato Community for over 4 years
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
webdesignerart says

Hi friends,

I want to know iz there any way to remove classes just only from cutom links, Atleast i want to remove these classes from my custom links “current-menu-ancestor current-menu-parent” not from dynamic links.

I use this pease of code:

add_filter('nav_menu_css_class', 'my_css_attributes_filter', 100, 1);
add_filter('nav_menu_item_id', 'my_css_attributes_filter', 100, 1);
add_filter('page_css_class', 'my_css_attributes_filter', 100, 1);
function my_css_attributes_filter($var) {
    return is_array($var) ? array_intersect($var, array('current-menu-ancestor current-menu-parent')) : '';
}

it removing css class from all static and dynamic links. i just want to remove css classes from custom links.

Any idea friends.

1678 posts
  • Has been part of the Envato Community for over 4 years
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
webdesignerart says



are you using a menu fallback? or the custom menu?
$walker = new My_Walker;
            wp_nav_menu( array( 'fallback_cb' => '', 'menu' => $nav_menu, 'container' => false, 'walker' => $walker ) );
Menu fallback.

try this: I hope this helps :)

function menu_fallback() {
        if(is_front_page()){ $class="current_page_item"; }
        ?>
        <div class="menu">
            <ul>
                <li class="<?php echo $class; ?>">
                    <a href="<?php echo home_url(); ?>">Home</a>
                </li>
                <?php wp_list_pages(); ?>
            </ul>
        </div>
        <?php
    }
$walker = new My_Walker;
            wp_nav_menu( array( 'fallback_cb' => 'menu_fallback', 'menu' => $nav_menu, 'container' => false, 'walker' => $walker ) );

Thanks for your help, but it will not working in my senario because i am using jquery mega menu plugin which call through widget option.

 if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('main_mega_menu') ) : ?>
1678 posts
  • Has been part of the Envato Community for over 4 years
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
webdesignerart says

are you using a menu fallback? or the custom menu?
$walker = new My_Walker;
            wp_nav_menu( array( 'fallback_cb' => '', 'menu' => $nav_menu, 'container' => false, 'walker' => $walker ) );
Menu fallback.
1678 posts
  • Has been part of the Envato Community for over 4 years
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
webdesignerart says

Hi guys i made class for current menu item its work fine but on home my product page like automatically add current-menu-ancestor current-menu-parent class why its showing on menu these extra class. I already add home page link its work fine and asigning current page link but the prodcut page is also highlighting in home page.

So anyone idea which things maybe causing this issue.

1678 posts
  • Has been part of the Envato Community for over 4 years
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
webdesignerart says

^ subreddits. Just started viewing /r/space – find awesome stuff

I am totally new to reddit, i heared so many peoples about reddit they addicted to use reddit daily. but i didn’t found any addicted thing on reddit which is concern to me :P maybe i didn’t understand till yet about reddit to how to use it.

1678 posts
  • Has been part of the Envato Community for over 4 years
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
webdesignerart says

Browse Reddit… I need a hobby.

WHy people use reddit, what are the main benefits from reddit.

1678 posts
  • Has been part of the Envato Community for over 4 years
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
webdesignerart says

Ha Ha Ha, both are funny. Try keep the spider away from canvas.. the dog will also vanish…

+1 :P

1678 posts
  • Has been part of the Envato Community for over 4 years
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
webdesignerart says

Hahaha waAOn nice, I always love flash animation :)

1678 posts
  • Has been part of the Envato Community for over 4 years
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
webdesignerart says
Hi guys today i found this spider animation, just want to share. Soorryy this is not publicity any website. It just for share funny content. http://www.vectorpark.com/etc/spider.html
by
by
by
by
by
by