Posted by arctushar on October 11, 2012 at 4:36pm
Hi
I have blog page. I have created a menu for creating blog. So I dont want that the default link for create blog to appear in the blog.
I use bartik theme and enabled blog module.
I just want to remove create new blog link from my blog page.
How can I do that
thanks
Comments
=-=
one method would be two separate menus. Menus are blocks which would then allow for block visibility by path.
Remove "Creat a new blog entry"
Part 1.
Go to Root Directory>modules>blog>blog.module
Open blog.module
Search for "Create new blog entry"
Delete "Create new blog entry" and save
Don't alter any PHP, just the text within the single quotes.
Part 2.
Go to Root Directory\themes\bartik\css
Open style.css, find the following and comment out the background image, like this:
ul.action-links li a {
/*background: url("../images/add.png") no-repeat scroll left center transparent;*/
margin: 0 10px 0 0;
padding-left: 15px;
}
Note: When you update Bartik in the future, you will have to repeat step 2.
=-=
That's a terrible way to deal with the issue. Never hack core for things like that. You wind up with a situation where if you update core your changes are overwritten and support becomes limited because you are no longer running a version of drupal everyone else is. Instead you are running your own version of drupal which is silly.
if you want to remove the link in total you can disable the menu item. If you want to alter a string you can use the string overrides.module both of which aren't what the user is asking.
The Positive Culture of Drupal
Hi VM, I recently began contributing input in the drupal.org forums for same reason that others ask questions in these forums, which is for the purpose of developing as a Drupalist through the unique dialectical processes that forums such as these offer. I think I speak for most newbies who participate here when I say that this process is best dealt with in a positive and encouraging way. Thanks for turning me onto String Overrides--an excellent tool!
=-=
Beethoven was frowned on by his contemporaries for utilizing notes like Eb and adding elements of emotion to music beyond the "happiness" that the bulk of culture expected and demanded. He chose to buck the system and perform in his own way. Advice, like music, comes in many tones. All of which are completely subjective in their interpretation by the listener.
rule #1 - avoid hacking core. Drupal is built with hooks. If you have to hack core to get something done then it is highly probable that you are performing the task incorrectly.
Another method would have been to disable the default menu item and to create your own through the menu ui which would have allowed you to add your own link text.