By Drake on
Hi guys
I've got a problem.
I woudl like to remove the link called "Create a new Blog entry" from the BLOG
Or I woudl like to add an div containder or a class which would format this link.
THe problem is that the main class is called item-list and if I format this with css then other links in other UL would be formatted too.
I would like to add a format ONLY to this link.
So how can I do this or where I can find the code (maybe in blog blog.module file???) releated to this link?
Cheers
Comments
yes, I would also like to put
yes, I would also like to put some space under that link. Where do you make the changes?
anyone?
how to theme Create New blog entry link
I'm also facing same issue...
create node-blog.tpl.php
create node-blog.tpl.php (you can copy the node.tpl.php) and could edit this template to get the requirements you need.
You can't remove the link by
You can't remove the link by creating node-blog.tpl.php. The only way i've been able to remove the link is by overwriting theme_item_list with phptemplate_item_list in my template.php file.
I used all the code from theme_item_list but modified the return statement to:
Not the best solution, but it works. Hope this helps.
overwriting theme_item_list to remove "create a new blog entry"
This suggested modification of the theme_item_list() function did work for me, but I had to change the return test, to work with my local development site:
This worked, however it was
This worked, however it was causing my pager to go missing.
Can be done by hook_menu_local_task_alter
As the link is by default added from the blog module, we can remove it with hook_menu_local_task_alter using this code.
Drupal developer
Email Me / Skype: miteshmap