• Resolved Samara

    (@blouishhotmailcom)


    This is the site I am working on; https://mrsdalrymple.com/

    I’m using the Brunelleschi theme.

    I want to put the Date (ie; September 5th, 2011) above the Title entry (ie; Happy Labour Day and Welcome to Mrs. Dalrymple!).

    How would I go about doing this?

Viewing 14 replies - 1 through 14 (of 14 total)
  • In the file loop.php (and possibly others), reverse the order of these two lines:

    <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'brunelleschi' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    
    <time datetime="<?php the_time('Y-m-d')?>"><?php the_time('F jS, Y') ?></time>
    Thread Starter Samara

    (@blouishhotmailcom)

    I reversed the two lines but it still kept it in the same order.

    Please check to make sure you reversed them in all the places where they occur, even in other files.

    Thread Starter Samara

    (@blouishhotmailcom)

    The only other place I found any code that has to do with time or h2 is loop-attachment.php At which point it’s not the same pieces of code.

    <header>
    
    					<h2 class="entry-title"><?php the_title(); ?></h2>
    
    						<div class="entry-meta">
    							<?php
    								printf( __( '<span class="%1$s">By</span> %2$s', 'brunelleschi' ),
    									'meta-prep meta-prep-author',
    									sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
    										get_author_posts_url( get_the_author_meta( 'ID' ) ),
    										sprintf( esc_attr__( 'View all posts by %s', 'brunelleschi' ), get_the_author() ),
    										get_the_author()
    									)
    								);
    							?>
    							<span class="meta-sep">|</span>
    
    <?php
    								printf( __( '<span class="%1$s">Published</span> %2$s', 'brunelleschi' ),
    									'meta-prep meta-prep-entry-date',
    									sprintf( '<span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span>',
    										esc_attr( get_the_time() ),
    										get_the_date()
    									)
    								);
    								if ( wp_attachment_is_image() ) {
    									echo ' <span class="meta-sep">|</span> ';
    									$metadata = wp_get_attachment_metadata();
    									printf( __( 'Full size is %s pixels', 'brunelleschi' ),
    										sprintf( '<a href="%1$s" title="%2$s">%3$s &times; %4$s</a>',
    											wp_get_attachment_url(),
    											esc_attr( __( 'Link to full-size image', 'brunelleschi' ) ),
    											$metadata['width'],
    											$metadata['height']
    										)
    									);
    								}
    							?>
    
    							<?php edit_post_link( __( 'Edit', 'brunelleschi' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
    						</div><!-- .entry-meta -->
    					</header>

    I just installed the Brunelleschi theme on my test site, and it does not look at all like your site. For example, beneath the post titles it says, e.g.:

    by nickname Posted on December 23rd, 2009

    Have you (or someone else) modified the theme? If so, you need to determine the template that is used to show your page. Then put the code for it in a pastebin and post a link to it here.

    Thread Starter Samara

    (@blouishhotmailcom)

    Yes, the theme was modified. In order to remove that “by xx Posted on” I modified the function.php https://pastebin.com/jKAtMh7B

    Here are the loop files incase you need them.

    loop-attachment.php
    https://pastebin.com/9hq8BCQH

    loop-page.php
    https://pastebin.com/1SQvkgi5

    loop-single.php
    https://pastebin.com/KC9gRwKq

    loop.php
    https://pastebin.com/0hpUXSFx

    Hi Samara,

    In a previous thread I helped you edit the following function:

    <?php brunelleschi_posted_on(); ?>

    Just change the placement of this call above that of your title.

    Hope this helps.

    Thread Starter Samara

    (@blouishhotmailcom)

    Fantastic! You’re a life saver harmck. ??

    Brilliant.

    No worries, all the best. Mark as resolved if you’re happy this is fixed.

    This is probably the simplest of changes, but I am so new to this that I cannot figure it out! Any further instruction would be greatly appreciated. Already followed the previous instructions for removing the “posted by” section, but am now looking to move the date above the title. Am I working with the same block of code in the function.php file? Have tried many things, all of which keep crashing the site. Am using a child theme for these modifications.

    Hi downlikedisco, this thread has been marked as resolved, it’s probably best you start your own one. If you do, post the link to it here.

    But very quickly, are you also using the Brunelleschi theme?

    Please post a new topic.

    Hi Esmi, you’re always on the ball *waves*

    Great minds think alike… fools seldom differ ??

    ??

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Moving Date above Title’ is closed to new replies.