Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1037263

    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

    #1037468

    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

    #1038570

    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

    #1038799

    Hi,
    I took another look at the combo widget and see that a new option for the third and forth tabs, there is now the option to have No Content:
    2018-11-28-211853
    When these are picked the tabs don’t show at all, please give this a try.

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.