Theme4Press Forums evolve edit post link wrongly placed in h1-title Reply To: edit post link wrongly placed in h1-title

Harald Röh
Post count: 39
#24227 |

Hi Imran,

in your file page.php line 52-70 it states:

<h1 class=”entry-title”><?php
if (get_the_title()) {
<?php if ($evolve_edit_post == “1”) { ?>
<?php if (current_user_can(‘edit_post’, $post->ID)): ?>
<?php edit_post_link(__(‘EDIT’, ‘evolve’), ‘<span class=”edit-page edit-attach”>’, ‘</span>’); ?>
<?php endif; ?>
<?php } ?>
<?php endif; ?>

if (has_post_thumbnail()) {
echo ‘

echo ‘


You should move the ‘edit_post’ section (italic characters above) out of the h1-header.
Place it after has_post_thumbnail if-section, which follows.
Doing this, the edit links will be displayed no longer with h1-format, which looks horrible.

The same applies to the file single.php, where you should place the ‘editpost’ section after the meta data section for author reference.

The same applies to the homepage which lists the most recent posts. However, I do not see yet where to change this here.

I hope this clarifies what I am discussing.
Finally, here is a screen shot of version 2.5.1
screenshot of version 2.5.1

The h1-edit-post-link is marked yellow (I use add_filter(‘edit_post_link’) for additional information).

Here is the same screenshot of version 2.0.1
version 2.0.1 screenshot
Here the same edit_post_links are also marked yellow but look much nicer.

Again, I would like to regain the 2.0.1 format.
Currently I manually change page.php and single.php, but do not know where to change the entries on the frontpage/homepage.

Thanks and best regards