How do i un-link the date and author name in the post meta?
-
under each post and also in within each post the meta says posted in “whatever category” and the date and author but the category , date and author appear as links. how do i un-link them?
-
Is this regarding stuff in the dashboard?
Which theme is this?
twenty twelve
Twenty Twelve uses a function
twentytwelve_entry_meta
defined in theme’s functions.php file to display entry meta information. You can modify it to unlink the items you don’t want to be displayed as links.Then you need to set up a Child Theme first: http://codex.wordpress.org/Child_Themes
Then create a functions.php file in your Child Theme and add your modified
twentytwelve_entry_meta
function, e.g:<?php function twentytwelve_entry_meta() { // Translators: used between list items, there is a space after the comma. $categories_list = get_the_category_list( __( ', ', 'twentytwelve' ) ); // Translators: used between list items, there is a space after the comma. $tag_list = get_the_tag_list( '', __( ', ', 'twentytwelve' ) ); $date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>', esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); $author = sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'twentytwelve' ), get_the_author() ) ), get_the_author() ); // Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name. if ( $tag_list ) { $utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' ); } elseif ( $categories_list ) { $utility_text = __( 'This entry was posted in %1$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' ); } else { $utility_text = __( 'This entry was posted on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' ); } printf( $utility_text, $categories_list, $tag_list, $date, $author ); } ?>
I created a child theme but it says my theme is broken and the description says missing template?
What’s in your Child Theme style.css file?
/* Theme Name: Twenty Twelve Child Theme URI: http://example.com/twenty-twelve-child/ Description: Twenty Twelve Child Theme Author: John Doe Author URI: http://example.com Template: twentytwelve Version: 1.0.0 */ @import url("../twentytwelve/style.css"); /* =Theme customization starts here -------------------------------------------------------------- */
Its a plain text file
It needs to be a “css” file that has a “.css” extension.
when i created the style.css folder it wouldn’t let me edit the folder because there is nothing in the folder so i had to create a word file and save it as a plain text file.i don’t know how else to save a file as a css file because my laptop doesn’t have that option to convert it to a css file.
Can you rename it and manually replace the “.txt” extension with “.css”?
<img src=”http://i417.photobucket.com/albums/pp259/crucialconfiict2/yeaaaa.png” border=”0″ alt=” photo yeaaaa.png”/>
i can save it with a .css at the end but the file itself will either be a word document, plain text, rich text or whatever file option windows gives me and then i have to upload it to my directory under the style.css folder.
here
sorry posted that link wrong
- The topic ‘How do i un-link the date and author name in the post meta?’ is closed to new replies.