nhuynh
Forum Replies Created
-
Ah, okay. Thanks for your help!
I just found a plug-in that does what I’m looking for and it works great:
https://www.ads-software.com/extend/plugins/more-to-the-top/If I take out the last line, the code does nothing. The more link still just jumps to the remaining content as usual.
I tried pasting it the first time below a closing bracket at the very end and got the undefined function error.
I’m a little concerned that the piece of code I’m using doesn’t even have a closing bracket of its own (see below). Do I need to add my own closing bracket to it or something?:
function remove_more_jump_link($link) {
$offset = strpos($link, ‘#more-‘);
if ($offset) {
$end = strpos($link, ‘”‘,$offset);
}
if ($end) {
$link = substr_replace($link, ”, $offset, $end-$offset);
}
return $link;
}
add_filter(‘the_content_more_link’, ‘remove_more_jump_link’);How do I tell if it’s in another function? I pasted it again right after
<?php
at the very top and I got this:Fatal error: Call to undefined function: add_filter() in /nfs/c02/h10/mnt/40637/domains/colourmovie.com/html/dayfornight2010/wp-includes/functions.php on line 13
Am I doing this wrong?
Nevermind, 2.9 worked fine! THANKS!!!
Thanks so much for the link! I am really appreciating the help right now.
I upgraded March 25, 2010… according to Wikipedia, that should be WordPress 2.9… but I don’t know the exact version number. Does it matter if I used 2.9, 2.9.1, or 2.9.2?
Nevermind, I got it working! I just moved the list element underneath the permalink code in the PHP file and then adjusted the margins in the style sheet. It works now!
https://colourmovie.com/dayfornight2010/
Thanks again! ??
Oh wow, thanks for the fast and very helpful response! ??
This is probably asking too much, but I don’t suppose there’s any other workaround for this, is there? That troublesome element looks really good where it is, and I really don’t know where else to put it.