• Resolved Asus24

    (@asus24)


    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)
  • Thread Starter Asus24

    (@asus24)

    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

    Thread Starter Asus24

    (@asus24)

    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' );
     $theme_url=get_bloginfo('template_url');
    echo "<ul>
                         <li class=\"bk0\"><a href=\"".$blog_url."\" style=\"background: url('https://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('https://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('https://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=\"https://mac-host.com/slidingdoor/slider.zip\" style=\"background: url('https://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=\"https://mac-host.com/support\" style=\"background: url('https://www.ccbl.info.tt/carib/wp-content/uploads/2012/09/tabs-05.png') no-repeat scroll 0%;\">slidingdoor</a></li>
    
    				</ul>";
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Page template and menu’ is closed to new replies.