Title: respodev's Replies | WordPress.org

---

# respodev

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[OceanWP] Queryselector all doesn’t work](https://wordpress.org/support/topic/queryselector-all-doesnt-work/)
 *  Thread Starter [respodev](https://wordpress.org/support/users/respodev/)
 * (@respodev)
 * [8 years ago](https://wordpress.org/support/topic/queryselector-all-doesnt-work/#post-10220216)
 * I want to select all the menu-item of the main menu on scroll event and change
   their color from white to black. Exactly the job of the javascript code in my
   first comment (also I have a sticky navbar who’s start with a transparent background
   and on scroll Y event move to a white background).
 * I tried this JQuery code without success…
 *     ```
       function initUpdateNavbarOnScroll() {
           var navbarc = $('#site-navigation-wrap .dropdown-menu>li>a');
   
           $(window).on('scroll', function(){
               if( $(window).scrollTop() >= $(window).innerHeight() ) {
                   navbarc.addClass('darklinker');
               } else {
                   navbarc.removeClass('darklinker');
               }
           });
       }
   
       initUpdateNavbarOnScroll();
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[OceanWP] Queryselector all doesn’t work](https://wordpress.org/support/topic/queryselector-all-doesnt-work/)
 *  Thread Starter [respodev](https://wordpress.org/support/users/respodev/)
 * (@respodev)
 * [8 years ago](https://wordpress.org/support/topic/queryselector-all-doesnt-work/#post-10214510)
 * I tried to do it in jquery (but it doesn’t work)… If it helps
 *     ```
       // ​$( "#site-navigation-wrap .dropdown-menu>li>a" ).on( "scroll", function( event ) {
       //     var navbarc = $( this );
       //     if (window.scrollY >= window.innerHeight) {
       //       navbarc.addClass('darklinker');
       //     } else {
       //       navbarc.removeClass('darklinker');
       //     }
       // });​​​​​​​​​​​​​​​​​​​​​
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[OceanWP] Queryselector all doesn’t work](https://wordpress.org/support/topic/queryselector-all-doesnt-work/)
 *  Thread Starter [respodev](https://wordpress.org/support/users/respodev/)
 * (@respodev)
 * [8 years ago](https://wordpress.org/support/topic/queryselector-all-doesnt-work/#post-10214391)
 * I don’t know how to use it correctly. It’s easier for me to use JS.
    Is it possible
   to do it with custom js ?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Business Directory Plugin - Easy Listing Directories for WordPress] business directory fields tag undisplayed](https://wordpress.org/support/topic/business-directory-fields-tag-undisplayed/)
 *  Thread Starter [respodev](https://wordpress.org/support/users/respodev/)
 * (@respodev)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/business-directory-fields-tag-undisplayed/#post-10165922)
 * it works well, thx !
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Business Directory Plugin - Easy Listing Directories for WordPress] business directory fields tag undisplayed](https://wordpress.org/support/topic/business-directory-fields-tag-undisplayed/)
 *  Thread Starter [respodev](https://wordpress.org/support/users/respodev/)
 * (@respodev)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/business-directory-fields-tag-undisplayed/#post-10165886)
 * hi [@businessdirectoryplugin](https://wordpress.org/support/users/businessdirectoryplugin/),
 * Do you have the answer from your developer ?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[OceanWP] OCEAN WP – All menu links disappeared](https://wordpress.org/support/topic/ocean-wp-all-menu-links-disappeared/)
 *  Thread Starter [respodev](https://wordpress.org/support/users/respodev/)
 * (@respodev)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/ocean-wp-all-menu-links-disappeared/#post-10120159)
 * Hi [@oceanwp](https://wordpress.org/support/users/oceanwp/),
    I tried to (re)
   add bootstrap with this code on this page: [https://dev.respoweb.com/agence-web/](https://dev.respoweb.com/agence-web/)
   but it’s not working… Could you help please ?
 *     ```
       function oceanwp_child_enqueue_parent_style() {
       	// Dynamically get version number of the parent stylesheet (lets browsers re-cache your stylesheet when you update your theme)
       	$theme   = wp_get_theme( 'OceanWP' );
       	$version = $theme->get( 'Version' );
       	// Load the stylesheet
       	wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( 'oceanwp-style' ), $version );
   
       }
       add_action( 'wp_enqueue_scripts', 'oceanwp_child_enqueue_parent_style' );
   
       /** Add Bootstrap **/
       function theme_styles() {
   
         wp_enqueue_style( 'bootstrap_css', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css' );
         wp_enqueue_style( 'theme_css', get_template_directory_uri() . '/style.css' );
   
       }
   
       add_action( 'wp_enqueue_scripts', 'theme_css');
   
       function theme_js() {
   
         global $wp_scripts;
   
         wp_enqueue_script( 'bootstrap_js', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js');
         wp_enqueue_script( 'theme_js', get_template_directory_uri() . '/js/scripts.js');
   
       }
   
       add_action( 'wp_enqueue_scripts', 'theme_js');
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[OceanWP] OCEAN WP – All menu links disappeared](https://wordpress.org/support/topic/ocean-wp-all-menu-links-disappeared/)
 *  Thread Starter [respodev](https://wordpress.org/support/users/respodev/)
 * (@respodev)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/ocean-wp-all-menu-links-disappeared/#post-10081155)
 * Yeah, I removed bootstrap because I couldn’t use it. But I wrote a quite similar
   code as [@mtankle](https://wordpress.org/support/users/mtankle/), in his comment.
 * I had the Bootstrap links as recommended on this page (all links in the `function.
   php` of my the child theme: [https://www.zenwebthemes.com/blog/how-to-add-bootstrap-to-your-wordpress-theme/](https://www.zenwebthemes.com/blog/how-to-add-bootstrap-to-your-wordpress-theme/)
 * And my child theme looks like :
 *     ```
       <?php
       /**
        * Child theme functions
        *
        * When using a child theme (see http://codex.wordpress.org/Theme_Development
        * and http://codex.wordpress.org/Child_Themes), you can override certain
        * functions (those wrapped in a function_exists() call) by defining them first
        * in your child theme's functions.php file. The child theme's functions.php
        * file is included before the parent theme's file, so the child theme
        * functions would be used.
        *
        * Text Domain: oceanwp
        * @link http://codex.wordpress.org/Plugin_API
        *
        */
   
       /**
        * Load the parent style.css file
        *
        * @link http://codex.wordpress.org/Child_Themes
        */
       function oceanwp_child_enqueue_parent_style() {
       	// Dynamically get version number of the parent stylesheet (lets browsers re-cache your stylesheet when you update your theme)
       	$theme   = wp_get_theme( 'OceanWP' );
       	$version = $theme->get( 'Version' );
       	// Load the stylesheet
       	wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( 'oceanwp-style' ), $version );
   
       }
       add_action( 'wp_enqueue_scripts', 'oceanwp_child_enqueue_parent_style' );
   
       /**
        * Change the Continue Reading text
        */
       function myprefix_post_readmore_link_text() {
         return "Lire l'article";
       }
       add_filter( 'ocean_post_readmore_link_text', 'myprefix_post_readmore_link_text' );
   
       /** Remove admin bar execpt for administrators **/
   
       /*Hide admin bar for certain roles*/
   
       if ( ! current_user_can( 'manage_options' ) ) {
           show_admin_bar( false );
       }
   
       add_filter('show_admin_bar', '__return_false');
   
       /** Security **/
   
       /* Remove the display of wordpress version */
   
       remove_action("wp_head", "wp_generator");
   
       /* Désactivate file editor in the wordpress */
   
       define('DISALLOW_FILE_EDIT',true);
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[OceanWP] OCEAN WP – All menu links disappeared](https://wordpress.org/support/topic/ocean-wp-all-menu-links-disappeared/)
 *  Thread Starter [respodev](https://wordpress.org/support/users/respodev/)
 * (@respodev)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/ocean-wp-all-menu-links-disappeared/#post-10078101)
 * Well, my site link is on the first comment : [https://dev.respoweb.com/](https://dev.respoweb.com/)
   🙂
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[OceanWP] OCEAN WP – All menu links disappeared](https://wordpress.org/support/topic/ocean-wp-all-menu-links-disappeared/)
 *  Thread Starter [respodev](https://wordpress.org/support/users/respodev/)
 * (@respodev)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/ocean-wp-all-menu-links-disappeared/#post-10073760)
 * For font awesome -> [https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css](https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css)
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[OceanWP] OCEAN WP – All menu links disappeared](https://wordpress.org/support/topic/ocean-wp-all-menu-links-disappeared/)
 *  Thread Starter [respodev](https://wordpress.org/support/users/respodev/)
 * (@respodev)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/ocean-wp-all-menu-links-disappeared/#post-10073747)
 * For css -> [https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css](https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css)
   
   For JS -> [https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js](https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js)
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[OceanWP] OCEAN WP – All menu links disappeared](https://wordpress.org/support/topic/ocean-wp-all-menu-links-disappeared/)
 *  Thread Starter [respodev](https://wordpress.org/support/users/respodev/)
 * (@respodev)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/ocean-wp-all-menu-links-disappeared/#post-10072723)
 * Hello,
 * Yes [@oceanwp](https://wordpress.org/support/users/oceanwp/), I solved the problem
   when I removed bootstrap from the child theme. I clearly messed up my first test(
   removing bootstrap)… By the way, [@mtankle](https://wordpress.org/support/users/mtankle/),
   
   I don’t have the solution to keep bootstrap on..
 * What I wanted to do was 2 simply columns in CF7 forms. To do it, I used an other
   solution ([https://deliciousthemes.com/contact-form-7-fields-columns/](https://deliciousthemes.com/contact-form-7-fields-columns/))
 * If you answer the bootstrap question, I may want to know how you do.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[OceanWP] Header and Menu disappeared after theme update](https://wordpress.org/support/topic/header-and-menu-disappeared-after-theme-update/)
 *  [respodev](https://wordpress.org/support/users/respodev/)
 * (@respodev)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/header-and-menu-disappeared-after-theme-update/page/2/#post-10020069)
 * Hello [@oceanwp](https://wordpress.org/support/users/oceanwp/), I recently add
   some CSS for Contact form 7 in my child theme and bootstrap cdn in the `header.
   php` of my child theme. And I saw that all my menu links disappeared (main-menu
   in header & footer-menu in the footer widget 2). I’m using Elementor (don’t know
   if it helps). After few test, removing boostrap cdn links (css and js), removing
   my new stylesheet. Nothing happened.. Still hided menu..
 * Strangely, I can see menu links items in the developper console of the browser…
 * Please advise and thank you !
    -  This reply was modified 8 years, 2 months ago by [respodev](https://wordpress.org/support/users/respodev/).

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