[resolved] How To Create Filter in Functions.php (4 posts)

  1. bennygill
    Posted 3 years ago #


    I want to add something to my functions file that filters the "Posted By..." text that appears on my posts.

    This is the php I need to 'hide'.

    <small class="entry-meta"><?php skematik_posted_on(); ?></small>

    I need to stop that from appearing on content-single.php and maybe some other pages I think of down the road.

    Can anyone help me out by providing some code to put into the functions.php file to make that happen?

    I don't want to simply delete that code snippet from the theme because every-time I upgrade the theme it will be lost.


  2. vtxyzzy
    Posted 3 years ago #

    Partly a guess, but try adding this to the end of your style.css:

    small.entry-meta { display: none; }

    It might help if you posted a link to your site where the problem can be seen.

  3. bennygill
    Posted 3 years ago #

    thanks. worked like a charm :)

  4. vtxyzzy
    Posted 3 years ago #

    If your problem has been solved, please use the dropdown on the right to mark this topic 'Resolved' so that anyone else with this question can see that there is a solution.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.