Hi
ho do i get rid of “Tags” & “Comments” from your Combo-Widget?
No CSS-tricks please – i need the code for my functions.php
Hey Maskenzauber,
Ok, no css, please go to: \enfold\framework\php\class-framework-widgets.php
line 1452 and find:
if( ! in_array( $instance[ $key ], array( 'popular', 'recent', 'comments', 'tagcloud' ) ) )
and modify to look like:
if( ! in_array( $instance[ $key ], array( 'popular', 'recent' ) ) )
unfortunately there is not a hook to use to add modifications to your functions.php, so you would have to copy the function from the file to your functions.php, which would be most of the page. Or you could add a copy of the file to your child theme folder.
Here is how to add the file to your child theme adjust the instructions for this file.
Best regards,
Mike
hm……
-no hook
-no option
And what about all the people who run websites without tags or without comments???
For them your widget is useless.
Another unkept promise from Enfold
Despite that, thanx for helping