Forum Replies Created

Viewing 15 replies - 46 through 60 (of 77 total)
  • I added this code for me and in my tests I think it work fine.

    Insert at begin of function add_paged_param($query):

    public function add_paged_param( $query ) {
    
            // Get paged from main query only
            // ! frontpage missing the post_type
    
            //laTribu - Remove "Page 1" at end of breadcrumb on products pages
            if( isset( $query->query['post_type'] ) ){
                        
              if( $query->query['post_type'] == "product" ) {
                return;
              }
            }
            //laTribu
    
        //rest of code...
    

    Hi.

    It seem work but show messages like this:

    Dhasboard->Woocommerce->Orders:

    Notice: id se llamó incorrectamente. Order properties should not be accessed directly. Backtrace: WP_List_Table->display, WP_List_Table->display_rows_or_placeholder, WP_Posts_List_Table->display_rows, WP_Posts_List_Table->_display_rows, WP_Posts_List_Table->single_row, WP_List_Table->single_row_columns, WP_Posts_List_Table->column_default, do_action(‘manage_shop_order_posts_custom_column’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Admin_Post_Types->render_shop_order_columns, WC_Order->get_formatted_shipping_address, apply_filters(‘woocommerce_order_formatted_shipping_address’), WP_Hook->apply_filters, call_user_func_array, APG_Campo_NIF_en_Admin_Pedidos->apg_nif_anade_campo_nif_direccion_envio, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong

    My account-> see order:

    Notice: id se llamó incorrectamente. Order properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/storefront/template-fullwidth.php’), get_template_part, locate_template, load_template, require(‘/themes/storefront/content-page.php’), do_action(‘storefront_page’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, storefront_page_content, the_content, apply_filters(‘the_content’), WP_Hook->apply_filters, call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, WC_Shortcodes::my_account, WC_Shortcodes::shortcode_wrapper, call_user_func, WC_Shortcode_My_Account::output, WC_Shortcode_My_Account::my_account, wc_get_template, include(‘/plugins/woocommerce/templates/myaccount/my-account.php’), do_action(‘woocommerce_account_content’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, woocommerce_account_content, do_action(‘woocommerce_account_vi

    when debug is on.

    Hi, try something like this:

    <span style=”color:#fcbf00;”> <i class=”fa fa-phone fa-lg”> </i> </span>

    or

    <i class=”fa fa-phone fa-lg” style=”color:#fcbf00;”> </i>

    • This reply was modified 9 years, 3 months ago by Carret.
    Thread Starter Carret

    (@carret)

    It’s work fine now.

    Thanks!

    Hi,

    I think may be failed for this:

    Function wc_get_rating_html, Since: 2.7.0.

    Hi all.

    /* Remove Storefront Product Search in Header */
    
    add_action( 'init', 'jk_remove_storefront_header_search' );
    
    function jk_remove_storefront_header_search() {
       remove_action( 'storefront_header', 'storefront_product_search',    40 );
    }
    /* Add Advanced Woo Search to storefront header */
    if ( ! function_exists( 'storefront_all_search' ) ) {
      function storefront_all_search() {
        if ( storefront_is_woocommerce_activated() ) { ?>
          <div class="site-search">
            <?php
    	echo do_shortcode('[aws_search_form]'); //Advanced Woo Search plugin
    	//the_widget( 'WP_Widget_Search' ); // wordpress search
    	?>
          </div>
        <?php
        }
     }
    }
    add_action('storefront_header', 'storefront_all_search', 40);
    Thread Starter Carret

    (@carret)

    More, in Frontend:

    Notice: Undefined variable: orig_order_setting in /opt/lampp/htdocs/namaste/wp-content/plugins/ultimate-faqs/Shortcodes/DisplayFAQs.php on line 112

    Notice: Undefined variable: orig_order_setting in /opt/lampp/htdocs/namaste/wp-content/plugins/ultimate-faqs/Shortcodes/DisplayFAQs.php on line 113

    Notice: Undefined variable: orig_order_setting in /opt/lampp/htdocs/namaste/wp-content/plugins/ultimate-faqs/Shortcodes/DisplayFAQs.php on line 114

    Notice: Undefined variable: orig_order_setting in /opt/lampp/htdocs/namaste/wp-content/plugins/ultimate-faqs/Shortcodes/DisplayFAQs.php on line 234

    Notice: Undefined variable: orig_order_setting in /opt/lampp/htdocs/namaste/wp-content/plugins/ultimate-faqs/Shortcodes/DisplayFAQs.php on line 235

    Notice: Undefined variable: orig_order_setting in /opt/lampp/htdocs/namaste/wp-content/plugins/ultimate-faqs/Shortcodes/DisplayFAQs.php on line 236

    While I wait for the update
    I changed the function “my_add_styles_admin” in the file forget-about-shortcode-buttons.php, for:

    public function my_add_styles_admin() {
    
    			global $current_screen;
    			$type = $current_screen->post_type;
    
    /* latribu - mod */
             $args = array(
                'public'   => true,
                '_builtin' => false //get only custom post types
             );
    
             $posttypes = get_post_types( $args, 'names' );
             //$posttypes = get_post_types( '', 'names' );
    
             if ( is_admin() && $type == 'post' || $type == 'page' || in_array($type, $posttypes) )
             {
    				?>
    				<script type="text/javascript">
    				var fasc_ajaxurl  = '<?php echo admin_url( 'admin-ajax.php' ); ?>';
    				var fasc_ver  = '<?php echo FASC_BUTTONS_VERSION_NUM; ?>';
    				</script>
    				<?php
    			}
    /* latribu - mod */
    
    /*    // original code
    			if (is_admin() && $type == 'post' || $type == 'page') {
    				?>
    				<script type="text/javascript">
    				var fasc_ajaxurl  = '<?php echo admin_url( 'admin-ajax.php' ); ?>';
    				var fasc_ver  = '<?php echo FASC_BUTTONS_VERSION_NUM; ?>';
    				</script>
    				<?php
    			}
    */
    
    		}

    Regards

    Review why the code is being taken as a string and not a php code to execute.

    Syntax review:

    <?php echo qtrans_generateLanguageSelectCode('both'); ?>

    I guess you will like look here too: Horizontal arrangement for flags
    https://wordpress.org/support/topic/plugin-qtranslate-horizontal-arrangement-for-flags

    Hi, try something like this:

    <input type="hidden" name="lang" value="<?php echo qtrans_getLanguage(); ?>">
    <button class="search" type="submit" id="searchsubmit" >{$label}</button>

    A example, searchform.php;

    <form method="get" id="searchform" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
    
    <input type="search" class="field" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" id="s" placeholder="<?php echo esc_attr_x( 'Search &hellip;', 'placeholder', 'theme' ); ?>" />
    
    <input type="hidden" name="lang" value="<?php if (function_exists('qtrans_getLanguage')) { echo qtrans_getLanguage();} else { if (function_exists('ztrans_getLanguage')) { echo ztrans_getLanguage();} } ?>">
    
    <button type="submit" class="submit" id="searchsubmit"><i class="icon-search"></i></button>
    </form>

    The same problem since a couple of days.

    Sorry to hear that, I’ve tested in WP4 and contact form7 and it works for me.

    Thread Starter Carret

    (@carret)

    Hi,

    Sorry for the confusion, http://www.site.com, it was just an example.
    I’m using the dynamic sitemap.

Viewing 15 replies - 46 through 60 (of 77 total)