Functions File – Child Theme Usage
-
My site is offline while I’m working on some updates, but can someone please help me understand how to make changes to the functions.php file? I have a child version of this file, and it works just fine with the following code as the only code in that file:
<?php function twentyeleven_posted_on() { printf( __( '<span class="sep">Posted on </span><time class="entry-date" datetime="%3$s" pubdate>%4$s</time><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'twentyeleven' ), esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ), get_the_author() ); }
But I’m trying to remove the date meta link, which I see in the parent functions.php file. Everything I do creates an error message. Here’s where that code is located. What do I add to the above child file?
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
I tried pasting just the code within the <?php … ?> tags, but that created an error, and I tried a few other things. But nothing works. Any suggestions?
Thank you.
- The topic ‘Functions File – Child Theme Usage’ is closed to new replies.