By theorichel on
Hello,
I have a taxonomy terms page that I have given a url-alias 'straling'. The url is allright now, but the same word 'straling' now appears on top of my page, which is very ugly. Taxonomy pages are no nodes, so how do I get rid of it? Is there for instance a way to refer to that page from my CSS and tell it 'do not display'? If so what is the syntax, if not, is there an alternative way?
Many thanks
Theo Richel
Comments
Hello, Theo! Title removal is
Hello, Theo!
Title removal is simple and can be made in template.php. All you need is to call yourthemename_preprocess_page() function in your theme's template.php file:
hope it helps :)
First, thank you very much, but I am not there yet
Since at first I got the message that function themagrk_preprocess_page(&$vars) was already in use, I merged your work with that one. That produced the code below, but 'straling' (here with full url, but just 'straling' produces the same). When I run this, tehere are no errors, but the title remains, even after emtying of cache.
you should use relative path
you should use relative path here, like this:
but be careful if you have urls like "straling/*", in that case you should use preg_match function. For example:
No Idea what I do wrong, but it doesnt work
I copy the whole block below. Clearing the cache makes no difference.
Hey!! Solved
The thing works when I put the desired code first position after function themagrk_preprocess_page. The other calls for this function seem unaffected. Wonderful!
If you're using views to
If you're using views to display the page you can just remove the title in the views UI.