Editing a theme

If you have no coding experience the easiest would be to add a text widget in the header section and use an image of the button and make it link to where you want it to go. Just upload the image to your media and then check the URL of the image in media. Something … Read more

Add image before link in woocommerce plugin [closed]

A quick solution: find your content-product.php find the below code <a href=”https://wordpress.stackexchange.com/questions/191263/<?php the_permalink(); ?>”> <?php /** * woocommerce_before_shop_loop_item_title hook * * @hooked woocommerce_show_product_loop_sale_flash – 10 * @hooked woocommerce_template_loop_product_thumbnail – 10 */ do_action( ‘woocommerce_before_shop_loop_item_title’ ); ?> <h3><?php the_title(); ?></h3> <?php /** * woocommerce_after_shop_loop_item_title hook * * @hooked woocommerce_template_loop_rating – 5 * @hooked woocommerce_template_loop_price – 10 */ … Read more

Genesis Style Selector causes PHP warning [closed]

This should remove the warning $selector = get_theme_support( ‘genesis-style-selector’ ); $wp_customize->add_control( ‘genesis_color_scheme’, array( ‘label’ => __( ‘Select Color Style’, ‘genesis’), ‘section’ => ‘genesis_color_scheme’, ‘settings’ => $this->get_field_name( ‘style_selection’ ), ‘type’ => ‘select’, ‘choices’ => array_merge( array( ” => __( ‘Default’, ‘genesis’ ) ), array_shift( $selector ) ), ) );

Woocommerce linking variations

I found a solution with a recursive function function decomposePrice($base, $iValue, $values, $prices) { $d = array(); foreach ($prices as $i => $p) { $baseP = “$base{$values[$iValue][$i]}|”; if (!is_array($p)) { $d[$baseP] = $p; } else { $d = array_merge($d, decomposePrice($baseP, $iValue + 1, $values, $p)); } } return $d; } $decomposePrice = decomposePrice(“”, 0, $v_values, … Read more

How to resort my id in wordpress?

I’m not sure what your intension is in doing this, but there are a couple of very important things to consider here Revisions, drafts, menus, custom post type and attachments are saved in the wp_posts table, not only post post type posts, so you will never have two posts having ID’s which difference is 1 … Read more

How to get Custom post type by related category ID

After two days with this problem have resolved the problem, I fix it adding tax_query parameter with my taxonomy name and slug of the category requested: $args = array( ‘post_type’ => array ( ‘servicios’ => ‘servicios’, ), ‘tax_query’ => array( array( ‘taxonomy’ => ‘category’, ‘field’ => ‘slug’, ‘terms’ => ‘dgit’ ) ) );

Separate Mobile site

You could enable multisite and set up your mobile version on a subdomain. That would allow you to control both fairly easily. However it would ultimately be better to just make the original site responsive.

Help with WordPress slider

I think you should use: get_template_part() So the only thing you have to do is put the get_template_part inside the header.php and add where you want to load it. get_template_part( ‘slider’ );