Title: Olegs Belousovs's Replies | WordPress.org

---

# Olegs Belousovs

  [  ](https://wordpress.org/support/users/xtraboy/)

 *   [Profile](https://wordpress.org/support/users/xtraboy/)
 *   [Topics Started](https://wordpress.org/support/users/xtraboy/topics/)
 *   [Replies Created](https://wordpress.org/support/users/xtraboy/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/xtraboy/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/xtraboy/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/xtraboy/engagements/)
 *   [Favorites](https://wordpress.org/support/users/xtraboy/favorites/)

 Search replies:

## Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How to add schema.org SiteNavigationElement and property URL to navbar?](https://wordpress.org/support/topic/how-to-add-schemaorg-sitenavigationelement-and-property-url-to-navbar/)
 *  [Olegs Belousovs](https://wordpress.org/support/users/xtraboy/)
 * (@xtraboy)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/how-to-add-schemaorg-sitenavigationelement-and-property-url-to-navbar/#post-5963660)
 * You can create a new walker class filter and assign it to your wp_nav_menu function.
 * Example:
 * In your functions.php file add:
 *     ```
       class My_Walker_Nav_Menu extends Walker_Nav_Menu {
       function start_lvl(&$output, $depth) {
         $indent = str_repeat("\t", $depth);
         $output .= "\n$indent<ul class=\"menu-nav navbar-nav scroll-menu\">\n";
       }
       function start_el(&$output, $item, $depth, $args) {
         $output.= '<li>';
         $attributes = ' itemprop="url" target="_blank" href="' .esc_attr($item->url). '" title="' .esc_attr($item->attr_title). '"';
         $item_output = $args->before;
         $current_url = (is_ssl()?'https://':'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
         $item_url = esc_attr( $item->url );
         $item_output.= '<a'. $attributes .'>'.$item->title.'</a>';
         $item_output.= $args->after;
         $output.= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
       }
       }
       ```
   
 * Now add your walker filter to your wp_nav_menu:
 *     ```
       <?php wp_nav_menu( array(
             'sort_column'     => 'menu_order',
             'theme_location'  => 'header-menu',
             'items_wrap'      => '<ul class="menu-nav navbar-nav scroll-menu">%3$s</ul>',
             'container_class' => 'collapse navbar-collapse menu-header ',
             'walker' => new My_Walker_Nav_Menu(),
           ) ); ?>
       ```
   
 * Source: [http://webformyself.com/forum/index.php?showtopic=2887](http://webformyself.com/forum/index.php?showtopic=2887)
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How to add schema.org SiteNavigationElement and property URL to navbar?](https://wordpress.org/support/topic/how-to-add-schemaorg-sitenavigationelement-and-property-url-to-navbar/)
 *  [Olegs Belousovs](https://wordpress.org/support/users/xtraboy/)
 * (@xtraboy)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/how-to-add-schemaorg-sitenavigationelement-and-property-url-to-navbar/#post-5963659)
 * You can create a new walker class filter and asign it to your wp_nav_menu function.
 * Example:
 * In your functions.php file add:
 *     ```
       class My_Walker_Nav_Menu extends Walker_Nav_Menu {
       function start_lvl(&$output, $depth) {
         $indent = str_repeat("\t", $depth);
         $output .= "\n$indent<ul class=\"menu-nav navbar-nav scroll-menu\">\n";
       }
       function start_el(&$output, $item, $depth, $args) {
         $output.= '<li>';
         $attributes = ' itemprop="url" target="_blank" href="' .esc_attr($item->url). '" title="' .esc_attr($item->attr_title). '"';
         $item_output = $args->before;
         $current_url = (is_ssl()?'https://':'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
         $item_url = esc_attr( $item->url );
         $item_output.= '<a'. $attributes .'>'.$item->title.'</a>';
         $item_output.= $args->after;
         $output.= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
       }
       }
       ```
   
 * Now add your walker filter to your wp_nav_menu:
 *     ```
       <?php wp_nav_menu( array(
             'sort_column'     => 'menu_order',
             'theme_location'  => 'header-menu',
             'items_wrap'      => '<ul class="menu-nav navbar-nav scroll-menu">%3$s</ul>',
             'container_class' => 'collapse navbar-collapse menu-header ',
             'walker' => new My_Walker_Nav_Menu(),
           ) ); ?>
       ```
   
 * Source: [http://webformyself.com/forum/index.php?showtopic=2887](http://webformyself.com/forum/index.php?showtopic=2887)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [uploading documents](https://wordpress.org/support/topic/uploading-documents/)
 *  [Olegs Belousovs](https://wordpress.org/support/users/xtraboy/)
 * (@xtraboy)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/uploading-documents/#post-6123607)
 * You can’t preview PDF and Word documents inside WordPress, only image files.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WordPress Related Posts] Crashing the Chrome Browser on Mac](https://wordpress.org/support/topic/crashing-the-chrome-browser-on-mac/)
 *  Thread Starter [Olegs Belousovs](https://wordpress.org/support/users/xtraboy/)
 * (@xtraboy)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/crashing-the-chrome-browser-on-mac/#post-4659314)
 * The blog post loads and then it stops where the text finish and begins the code
   of your plugin, then crashes… without the loading of the comments module and 
   footer.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WordPress Related Posts] Crashing the Chrome Browser on Mac](https://wordpress.org/support/topic/crashing-the-chrome-browser-on-mac/)
 *  Thread Starter [Olegs Belousovs](https://wordpress.org/support/users/xtraboy/)
 * (@xtraboy)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/crashing-the-chrome-browser-on-mac/#post-4659313)
 * What happened exactly? – On trying to access any single post of the blog (on 
   site not in admin) Chrome Browser crashes with the screen of Sad Tab Page…https://
   support.google.com/chrome/answer/95669?p=e_awsnap&rd=1&hl=en
 * Which site did crash exactly, at what exact time? [http://yesmoke.eu/](http://yesmoke.eu/)
   this morning before 12:00 UTC/GMT +1 hour
 * After you updated the plugin? – Yes, yesterday evening i updated the plugin to
   3.3.3, but this morning my boss said me what tonight he had some issues to view
   post on his Mac in Chrome. So i discovered and fixed it with the deactivation
   of your plugin.
 * The Plugins page of your WP Dashboard? – No the single blog posts.
 * Did the blog load or not? – The blog yes, the single post not.
 * May we ask you if you have any other related posts plugins installed? What code
   exactly are you talking about? – No.
 * Thanks for help.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Smush – Image Optimization, Compression, Lazy Load, WebP & CDN] [Plugin: WP Smush.it] HTTP Error on image upload.](https://wordpress.org/support/topic/plugin-wp-smushit-http-error-on-image-upload/)
 *  [Olegs Belousovs](https://wordpress.org/support/users/xtraboy/)
 * (@xtraboy)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-smushit-http-error-on-image-upload/page/2/#post-2718204)
 * Same thing. Deactivated it and now it’s ok with the image uploading.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP CleanFix] Upgrading to the latest wp-cleanfix broke our site](https://wordpress.org/support/topic/upgrading-to-the-latest-wp-cleanfix-broke-our-site/)
 *  [Olegs Belousovs](https://wordpress.org/support/users/xtraboy/)
 * (@xtraboy)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/upgrading-to-the-latest-wp-cleanfix-broke-our-site/#post-2748486)
 * This update broke my sites too. Rename the folder on your server to fix. Please
   we are waiting for the updates and fixes. Thanks.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Pagination with custom post type listing](https://wordpress.org/support/topic/pagination-with-custom-post-type-listing/)
 *  [Olegs Belousovs](https://wordpress.org/support/users/xtraboy/)
 * (@xtraboy)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/pagination-with-custom-post-type-listing/page/2/#post-1566793)
 * **[@rafaelxy](https://wordpress.org/support/users/rafaelxy/)** & **[@bigevilbrain](https://wordpress.org/support/users/bigevilbrain/)**
   Thank you so much!!! Became crazy for a half day… all that solutions online don’t
   works. This is the hack! Clap clap!!

Viewing 8 replies - 1 through 8 (of 8 total)