Forum Replies Created
-
AuthorPosts
-
December 14, 2016 at 8:48 pm in reply to: Remove link from page and post H1 titles (Permanent Link) #724532
I dont want a css code, i am looking for a function similar to the one already posted to remove the post title links as well, please advise
December 14, 2016 at 1:01 am in reply to: Remove link from page and post H1 titles (Permanent Link) #724050There is the link, i have already set the heading of blog to not show, now i am talking about the post title. thanks!
December 10, 2016 at 5:27 pm in reply to: Remove link from page and post H1 titles (Permanent Link) #722721hi, i am back,
any chance on how to also remove the links from the blog post titles?
Hello? Any answer? Would a code similar to the ones found here work in the functions.php?
http://wordpress.stackexchange.com/questions/53724/can-hyperlinks-be-displayed-in-excerpts
http://wordpress.stackexchange.com/questions/27933/display-links-in-excerpts
There is no code that i can put in my functions file to enable these links in the posts excerpts? I definitely need the plugins on the website.., is there any other way?
November 10, 2016 at 11:24 pm in reply to: Remove link from page and post H1 titles (Permanent Link) #710929ok i got it i believe!
used this:
add_filter(‘avf_title_args’, ‘fix_single_post_title’, 10, 2);
function fix_single_post_title($args,$id)
{
$args[‘link’] = “”;
$args[‘heading’] = ‘h1’;return $args;
}will let you know if anything else comes up, thanks!!
November 10, 2016 at 11:20 pm in reply to: Remove link from page and post H1 titles (Permanent Link) #710928i tried removing that line, and now all of the links are back. any other ideas? i am using only that code in the functions.php
November 10, 2016 at 10:51 pm in reply to: Remove link from page and post H1 titles (Permanent Link) #710925this code in the functions.php works for me to remove the link from the headings:
add_filter(‘avf_title_args’, ‘fix_single_post_title_h1’, 10, 2);
function fix_single_post_title_h1($args,$id)
{
if (is_single())
{
$args[‘title’] = get_the_title($id);
$args[‘link’] = “”;
$args[‘heading’] = ‘span’;
}return $args;
}thanks for this! however, it changes the posts page title where all the posts are displayed from “blog” to the main title of the most recent post. any fix for this?
-
AuthorPosts