Support » Themes and Templates » [Resolved] Page template and menu

[Resolved] Page template and menu

  • I build a custom menu that has images as tabs, and I have custom Page templates. I need a way to call the page template directly from the menu.
    I don’t want to create a link to a page using the template because I dont want the person to accidently delete the page using the page template and have their website down.

    I am basically trying to do this li class=\”bk0\”>slidingdoor</li

    $mytemplate = get_page_template(‘mypage_template.php’);

    any help would be most appreciated

Viewing 3 replies - 1 through 3 (of 3 total)
  • Tarsem Singh


    I was actually looking at this but I dont actually know where to find the slug for the page template. Still would like more help on this issue please

    Below shows what I am trying to do. When I click on the corresponding link nothing shows up

    function no_sliding_menu(){
     $blog_url = site_url();
     $p_url= get_template_part( 'loop', 'index' );
    echo "<ul>
                         <li class=\"bk0\"><a href=\"".$blog_url."\" style=\"background: url('http://www.ccbl.info.tt/carib/wp-content/uploads/2012/09/tabs-01.png') no-repeat scroll 0%;\">slidingdoor</a></li>
    			<li class=\"bk1\"><a href=\"#\" style=\"background: url('http://www.ccbl.info.tt/carib/wp-content/uploads/2012/09/tabs-02.png') no-repeat scroll 0%;\">slidingdoor</a></li>
    			<li class=\"bk2\"><a href=\"".$p_url."\" style=\"background: url('http://www.ccbl.info.tt/carib/wp-content/uploads/2012/09/tabs-03.png') no-repeat scroll 0%;\">slidingdoor</a></li>
    			<li class=\"bk3\"><a href=\"http://mac-host.com/slidingdoor/slider.zip\" style=\"background: url('http://www.ccbl.info.tt/carib/wp-content/uploads/2012/09/tabs-04.png') no-repeat scroll 0%;\">slidingdoor</a></li>
    			<li class=\"bk4\"><a href=\"http://mac-host.com/support\" style=\"background: url('http://www.ccbl.info.tt/carib/wp-content/uploads/2012/09/tabs-05.png') no-repeat scroll 0%;\">slidingdoor</a></li>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Page template and menu’ is closed to new replies.