How does one hide the "automatically generated" top navigation links with the Marvin theme. I have tried adding the links I desire to the conf.php file only to find that apparently Marvin pays no attention to that.

I realize that I should probably move to a newer theme but I am almost done with this thing and will change themes later.

Comments

jxs2151’s picture

Anyone?

TDobes’s picture

Setting the $custom_links array in conf.php should modify the links in marvin. Put a line that looks something like the following in conf.php:$custom_links = array(l("Your First Link Name", "node/view/1"), l("Your Second Link Name", "node/view/2"));
If that doesn't work or you've decided you don't want the links at all, you'll need to edit themes/marvin/marvin.theme and comment out the lines containing theme("links", link_page())

Good luck.

jxs2151’s picture

Nothing....

I made the entry in conf.php, even restarted Apache. Is there anything that I should restart to have conf.php re-read?

TDobes’s picture

Okay... first: I tried this myself, and the code I gave you apparently contained an error. You can't call the l() function from conf.php. Instead, you should try a slightly more old-fashioned approach:

$custom_links = array(
  "<a href=\"node/view/1\">Your First Link Name</a>",
  "<a href=\"node/view/2\">Your Second Link Name</a>");

That said, adding those lines to conf.php worked just fine for me... and adding the lines I gave you earlier should have created an error, preventing any pages from loading. conf.php is re-read for every page generation, so nothing should need to be restarted.

Therefore, the page you're seeing must either be (a.) a cached page from your browser or (b.) configured with a file OTHER than conf.php. So... clear your browser cache and look for other .php files in the includes/ directory. Is there one specific to your site name? If so, that's the one you should be editing, as that overrides conf.php.

jxs2151’s picture

Do you have any understanding of how difficult and humiliating it is to walk around being a stupid person?

Of course I need to edit the conf.php file that has my site/domain name- I knew that......

Thanks for your patience.