WordPress.org

Ready to get started?Download WordPress

Forums

Polylang
Polylang : bug with pagelines again (2 posts)

  1. phigrain
    Member
    Posted 1 year ago #

    Hi,
    I'm still struggling to use polylang with pagelines
    As soon as I activate polylang I get the following error :

    Warning: strpos() expects parameter 1 to be string, object given in /home/www/d518b5d52d219ef566aebff6e0652023/web/wp-content/themes/pagelines/includes/class.render.css.php on line 333

    Warning: rtrim() expects parameter 1 to be string, object given in /home/www/d518b5d52d219ef566aebff6e0652023/web/wp-includes/formatting.php on line 1381

    I've read this topic : , and I've changed these lines (in ...sections/navbar/section.php) :

    if ( is_array( wp_get_nav_menu_items( $menu ) ) || has_nav_menu( 'primary' ) ) {
    					wp_nav_menu(
    						array(
    							'menu_class'		=> 'font-sub navline pldrop ' . $align_class,
    							'menu'				=> $menu,
    							'container'			=> null,
    							'container_class'	=> '',
    							'depth'				=> 3,
    							'fallback_cb'		=> ''
    						)
    					);

    to this :

    if ( is_array( wp_get_nav_menu_items( $menu ) ) || has_nav_menu( 'primary' ) ) {
    					wp_nav_menu(
    						array(
    							'menu_class'		=> 'font-sub navline pldrop ' . $align_class,
    							'container'			=> null,
    							'container_class'	=> 'menu-header',
                                                      	'theme_location'	=> 'primary',
    							'depth'				=> 3,
    							'fallback_cb'		=> ''
    						)
    					);

    but I still get the same error.

    Have you a suggestion ?

    http://wordpress.org/extend/plugins/polylang/

  2. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic