• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Add an custom menu item

Started by sawyer10,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sawyer10Topic starter

Hi,

How do i add an custom item on the menu? I want a menu item that links to a different page/folder in my domain.

Thanks,
  •  

Marius P.

Hi,
In the left? You edit tpl/{your theme}/sidebar.php
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

sawyer10Topic starter

Thanks!
So for example if i want an external link, what wil the code be like with an custommade icon?
  •  

Marius P.

Depends where exactly you want to place it. It would be a simple html link for sure :)
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

sawyer10Topic starter

Right below of the images category with own icon. Any sample code for this? Or do you know what code line i should use? :)
  •  

Marius P.

Brasil or default theme?

This prints the images menu:

if(get_option('imagesmenu') == 1 ) {
echo '<div class="sidebar-nav blc"><div class="head"><h4>'._lang('Image Categories').'</h4><>'.the_nav(3).'<div class="clearfix"><><>';
}



If you add an
echo '<div class="sidebar-nav blc">
<ul>
<li><a href="#" title="Yout title"><img src="custom image path" class="cat-menu-img">Link text[/url]
</ul>
</ div>
';



after it (and place as many links as <li> in it.


Make sure you close the div, I have to write </ div> because smf replace the close div with <> (make sure you strip the space in your code).
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

sawyer10Topic starter

  •  

Similar topics (7)