Rab
(@rab-rrdev)
Please take a backup of these files before you edit them, I’ve not tested these modifications.
Edit page.php and go to line 23. Then remove this line and save:
<small class="permalink"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">Permanent Link</a></small>
Edit single.php and go to line 36. Then remove this line and save:
<small class="permalink"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">Permanent Link</a></small>
You can edit these through a file manager from your host, through an FTP client such as FileZilla or from your WordPress Dashboard under Appearance: Editor.
Remember, take a backup of those files! If anything unexpected happens just replace with the files you backed up. Be sure to just remove the mentioned code above.
Let me know how you get on!
Fantastic Rab, that did the trick overall on the whole site, apart from is it possible to also remove the “Permalink” (or in fact the whole box) that appears below each entry on the http://www.timclare.com/latest/ page?
Thanks so much, i’ve asked several places but none have been able to help so thanks for yours!
Rab
(@rab-rrdev)
Yep, you can hide that with CSS. Edit your themes style.css inside the theme folder and look for .postmetabottom around line 461. You can then add display: none; on a new line within the { and } of .postmetabottom.
Hi Rab, I looked at my themes style.css and there were several parts of the code that showed postmetabottom. I tried adding the extra line of code metioned above in a new line after the { for each of the codes below but this still did not hide the Permalinks on the http://www.timclare.com/latest/ page.
I also tried changing none to hidden but this did not seem to work. Any suggestions?
Here is the code relevant to postmetabottom within my style.css.
Thanks
Tim
.postmetabottom {
background: url(images/whitetrans.png);
overflow: hidden;
width: 100%;
padding: 10px 0;
font-size: 0.8em;
line-height: 1.1em;
margin-top: 15px;
}
.postmetabottom a {
color: #fff;
}
.postmetabottom a:hover {
color: #afdaff;
}
.postmetabottom .tags {
float: left;
width: 440px;
background: url(images/tags.png) left 1px no-repeat;
margin-left: 10px;
padding-left: 20px;
line-height: 16px;
}
.postmetabottom .readmore {
float: right;
width: 160px;
padding-right: 10px;
text-align: right;
}
.postmetabottom .readmore span {
background: url(images/more.png) left 4px no-repeat;
padding-left: 17px;
}
Rab
(@rab-rrdev)
Try adding this at the bottom of style.css
.postmetabottom {
display: none !important;
}
Then try viewing it in another browser / clear the cache of current browser. I don’t see why this wouldn’t remove it, let me know how you get on.
You could then, also try to remove the following from index.php, however try the CSS first. Also, make a backup before changing this as before.
Around like 31 remove,
<div class="postmetabottom">
<div class="tags"><?php the_tags( 'Tags: ', ', ', '' ); ?></div>
<div class="readmore"><span><a href="<?php the_permalink(); ?>">Read more</a></span></div>
</div>
Rab, thanks so much for your help. The first method (adding the text to the bottom of the style.css) worked! Perfect!! THANK YOU!!