-
AuthorPosts
-
July 13, 2013 at 6:25 am #26142
Hi,
Really like Enfold. Still haven’t completely understood all the options, and one thing has me very confused:
Early in development we were going to call the blog “latest news” then we changed our minds, only I can’t find where that “Permanent Link” is coming from that shows up in the #top .title_container. We added category titles and changed default “uncategorized” to “blog.” None of our categories is “latest news,” but still it shows up, and additionally, it is a link to the home page, which has me completely baffled.
Also, in the breadcrumbs we’re getting …/blog/blog/… We created a “page” with blog entries text box, and have posts going to “blog” in WP reading settings.
Here’s a page: http://www.montana-associates.dreamhosters.com/2013/07/the-dodd-frank-conflict-minerals-certification-provision/
I hope you can shed some light on this. Thank you.
July 14, 2013 at 5:06 pm #129449Hi babayard,
That is called the page slug and you can change it by clicking on the little url structure under the page title.
The reason you are getting 2 blogs in your breadcrumbs is because you have the root “blog” page and then you have a post category called “blog”. So its going Home> Blog Page>Post Category>Post Sub-Category>Post title.
See: http://codex.wordpress.org/Glossary#Post_Slug
Regards,
Devin
July 15, 2013 at 3:33 am #129450Devin,
Thanks for reply. I fixed the blog/blog issue, but the first question is still a problem. My page slug is just /blog, but what I’m getting in the .main-title is Blog – Latest News, and it is a link to the home page !?!? The permalink for the page under the page title is /blog
(as an aside, and a secondary problem here: In fact, all the main titles on Pages are links to themselves, which is the first time I’ve seen that happen. Can I change that in one of the Enfold theme files?)
I have looked at the slug of every page and post in current lists as well as in the trash.
I have searched the database for that slug and cannot find it…
Any other thoughts on where it might be hidden away would be greatly appreciated.
July 15, 2013 at 3:46 am #129451OK, please scratch the question about eliminating the anchor for page titles. I see they are “bookmarks” and understand the reasoning there. I will leave them.
Still, if you can think of any other place I could look to change or delete Latest News, I would be greatly relieved.
Thanks!
July 16, 2013 at 8:46 am #129452Add following code to the bottom of functions.php:
add_filter('avf_title_args', 'fix_single_post_title', 10, 2);
function fix_single_post_title($args,$id)
{
if ( $args['title'] == 'Blog - Latest News' )
{
$args['title'] = get_the_title($id);
$args['link'] = get_permalink($id);
}
return $args;
}This will replace the “Blog – Latest News” with the page title.
July 16, 2013 at 7:37 pm #129453Sweet! Thank you.
July 17, 2013 at 4:34 pm #129454Glad Dude could help :)
Let us know if you have any other questions or issues.
-
AuthorPosts
- The topic ‘Changing Permanent Link’ is closed to new replies.