How to move one directory up in VS Code - css

How do I move one directory up while using url in css in VS Code ? For example I´m in C:\Blah\Blah\Blah and I need a picture that is in C:\Blah\Blah
How do I do that ?
Thanks
‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎

Related

Export multiple file PHPExcel

I would like to export several files with PHPExce, the problem is that the code works very well but only exports one file.
Here is my final code after my foreach loop :
header('Content-Type: application/vnd.ms-excel');
$objWriter = IOFactory::createWriter($Xls, 'Excel5');
header('Content-type: application/vnd.ms-excel');
header('Content-Disposition: attachment; filename="test.xls"');
header('Cache-Control: max-age=0');
$objWriter->save('php://output');
Thanks

Apply CSS only on decimals for Woocmmerce

I'm trying to find a function that will make the decimal postions in the Woocommerce prices to have their own CSS class, so i can apply a different style than the one for the the non decimal part of the price. I have multi-lingual and multi-currency website.
I found a code that does what I'm looking for but it was coded in a way that will replace the currency symbol for the brazilian symbol, and because i don't know how to code myself, i could not amend the code to apply to my needs.
Thanks in advance.
Add a <span> to the decimals and create a class just for them :
HTML :
<div name="price">
$ 99.<span class="decimals">99<span>
</div>
CSS :
.decimals {
/* The style you want for the decimals goes here */
}
You need to use formatted_woocommerce_price filter. Check code example. You can change sub to any HTML element you want with your specific class.
add_filter( 'formatted_woocommerce_price', 'style_decimal_price', 10, 5 );
function style_decimal_price( $formatted_price, $price, $decimal_places, $decimal_separator, $thousand_separator ) {
$unit = number_format( intval( $price ), 0, $decimal_separator, $thousand_separator );
$decimal = sprintf( '%02d', ( $price - intval( $price ) ) * 100 );
return $unit . '<sub class="custom-decimal">' . $decimal_separator. $decimal . '</sub>';
}

decimal separator in woocommerce to be a comma

I have a woocommerce shop in which I have set up my prices (in settings) to have the decimal separator to be a comma instead of a dot (EURO system).
The problem is in the code I need to add. There is this part:
$price_excl_vat = wc_get_price_excluding_tax( $product ); // Unit price excluding VAT
and this
<?php echo $items_string;
where it returns the prices with a dot.
Any tips on how to make it give the prices with a comma?
You can use the function number_format( $price_excl_vat, 2, ',', ' ' ); to format your price with the decimal separator set as comma.
http://php.net/manual/en/function.number-format.php
You could also use the woocommerce function wc_price( $price_excl_vat, array( 'decimal_separator' => ',' ) );. This function wil return a formatted price with a currency symbol and the decimal separator set as comma.
http://woocommerce.wp-a2z.org/oik_api/wc_price/

How to change <p> tag class woocommerce checkout page

i am working with woocommerce checkout form but facing a problem.please anyone help me out.i got form-row form-row-first class but i need form-row form-row-wide class within this tag.how to replace it. How to change class p class="form-row form-row-first validate-required" to p class="form-row form-row-wide"
Solved, need to include this function into functions.php file. thanks you so much to all.
add_filter( 'woocommerce_checkout_fields' , 'amit_checkout_fields_styling', 9999 );
function amit_checkout_fields_styling( $fields ) {
$fields['billing']['billing_first_name']['class'][0] = 'form-row-wide';
return $fields;
}

Remove 'Theme Options' Option Tree Wordpress

I use the Options Tree. Just to use a Meta Box only. And I do not use his Theme Options.
In the picture below, how to throw Theme Options menu?
Is it possible?
Add the following code to your functions.php file:
function remove_ot_menu () {
remove_submenu_page( 'themes.php', 'ot-theme-options' );
}
add_action( 'admin_init', 'remove_ot_menu' );
This will remove the panel you want to remove.
/**
* Option Tree Files
* Including Files and setting up Option Tree
*
* #Since 1.0.0
* Version 1.0.0
*/
if(class_exists('OT_Loader' )):
//Filter for option tree settings
add_filter( 'ot_show_pages', '__return_false' );
add_filter( 'ot_show_new_layout', '__return_false' );
add_filter( 'ot_post_formats', '__return_true');
add_filter( 'ot_use_theme_options', '__return_false' ); //This filter removes theme options page.
endif;
The code above is helpful to remove custom Theme options page from Option Tree, make sure you add this in functions.php
This code is helpful for people who want to just use Metaboxes of OptionTree plugin not the Theme options.

Resources