• I am trying to modify quicksand_entry_meta. I located the function in template-tags.php. I want to remove the date from displaying on the post so I removed the following from the function:

    // date
    if (in_array(‘date’, $onlyShowThisMetaInfo) && in_array(get_post_type(), array(‘post’, ‘attachment’))) {
    $quicksand_entry_date = get_quicksand_entry_date();
    echo wp_kses_post($quicksand_entry_date);
    }

    However, this is not working. The date still shows. I looked through other files to figure out where to modify the function but could find nothing.

    What am I doing wrong? Please advise where I modify this function.

    Doing this in a child theme btw.

    Thanks,

    Darrin

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author cafeserendipity21

    (@cafeserendipity21)

    Hello zaino,
    you don’t have to modify the code to blind out the date. Just goto your customizer->theme options->content and uncheck ‘date’ below ‘show meta’. That should do the job.
    Hope that helps ??

    Thread Starter zaino

    (@zaino)

    Hello,

    Thanks for getting back to me. Yes, that certainly helps for removing the date.

    I also want to make some other modifications to the function and would like to know which file to do this in.

    For example, if I want to write my own quicksand_entry_meta where do I do this? I attempted to do it in template-tags.php but it did not work. Any advice on customizing this would be awesome.

    Thanks in advance.

    -Darrin

    Theme Author cafeserendipity21

    (@cafeserendipity21)

    Hello zaino,
    first create a child-theme, i.e. with Child Theme Configurator, which creates a functions.php as well. Otherwise yor modifications will be overwritten by the next update. From there, just copy the function you’ve already mentioned ( quicksand_entry_meta() ) and paste it inside, but including if (!function_exists(‘quicksand_entry_meta’)). That’s it.

    Hope that helps ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to modify quicksand_entry_meta’ is closed to new replies.