mindphuk
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Hide related products doesnt workadd_action( ‘woocommerce_after_single_product_summary’, ‘remove_related_products_conditionally’, 1 );
function remove_related_products_conditionally(){
global $product;// HERE Define your targeted product Id(s) (in the array)
$targeted_products = array( 37 );if( in_array( $product->get_id(), $targeted_products ) )
remove_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_related_products’, 20 );
}Next example I tried that doesnt work
Forum: Plugins
In reply to: [Custom Fonts - Host Your Fonts Locally] How can I activate custom font?Sorry that doesn’t work for me. I added this to my custom CSS but the title appears in Times.
@font-face {
font-family: “MurrayGrunge”;
src: url(‘https://mysite/wp-content/uploads/2020/01/Murray-Grunge.ttf ‘) format(“ttf”),
}.site-title {
font-family: MurrayGrunge;
font-size: 26px;
}The CSS shows font-family: MurrayGrunge a property of the title element but hovering above the font name in inspector shows the example text in the same default Times serif font.
Forum: Plugins
In reply to: [Custom Fonts - Host Your Fonts Locally] How can I activate custom font?I can not find the uploaded fonts in the typography. How does the CSS look like for the font if I want to display them in the vanilla wordpress header for instance? What’s the url the fonts are installed to?
@font-face {
font-family: “MyFont”;
src: url(“?????”) format(“woff2”),
url(“?????”) format(“woff”);
}.logo .header-logo-text {
font-family: MyFont;
font-size: 26px;
}