Timeline for Hide woocommerce category name from specific pages
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 14, 2021 at 17:42 | comment | added | Rajneesh Tiwari | glad to hear that. | |
Jul 14, 2021 at 17:41 | comment | added | Pees | I tried the solutions in the comments and worked really good. I thank you very much for your efforts! | |
Jul 14, 2021 at 17:38 | comment | added | Rajneesh Tiwari | ok no issues, I will run the code the same code on my local system and will update you about that. Hope I find the solution. | |
Jul 14, 2021 at 14:24 | comment | added | Pees | Sorry Rajneesh i tought it worked but no. I'm sorry because the problem is that i do not know php so i wrote the function wrong. "function my_custom_page_category_hide(){ $page_title = $wp_query->post->post_title; if($category_id=="60"){ echo '<style> .box-text-inner { display: none !important; } </style>'; } } add_action( 'wp_head', 'my_custom_page_category_hide' );" | |
Jul 14, 2021 at 10:44 | comment | added | Rajneesh Tiwari | is my above comment solution worked for you? Let me know so that I can update my answer accordingly. please post what function you used in the place of $page_title | |
Jul 14, 2021 at 10:26 | vote | accept | Pees | ||
Jul 14, 2021 at 9:38 | comment | added | Rajneesh Tiwari | Ok, on my same above code try to add this solution, stackoverflow.com/questions/8829632/… check for the category id where am checking $page_title , this might help you. | |
Jul 14, 2021 at 8:51 | comment | added | Pees | Hello Rajneesh and thank you for your help. The snippet didn't work probably because it's not a custom page with a title but a woocommerce category page. Here's the page link so that you can understand my problem more clearly. romasecondapelle.it/categoria-prodotto/figurine-panini The images already have the name so i need to hide the title under the image box. | |
Jul 13, 2021 at 9:15 | history | answered | Rajneesh Tiwari | CC BY-SA 4.0 |