Open dish page (4 posts)

  1. will7914
    Posted 1 year ago #


    Is there a way to click on each dish to open its own page ?

    Thanks !

  2. soxpm
    Posted 1 year ago #

    Hi Will,
    For each dish there is a 'permalink' page. Edit the menu item and look for the link toward the top of the page. It should say something like http://yourdomain.com/menu-item-archive/dishname. There is a button below the link that lets you create a short link as well. This is a numeric version of the link. It will be displayed when you hit the short link button.

  3. soxpm
    Posted 1 year ago #

    I am working on a way to make it so you can click on the name of the dish and take you to that page by editing the content-menu.php page. I'll let you know what I find.

  4. soxpm
    Posted 1 year ago #

    Edit content-menu.php
    To make the image link to the dish page, replace

    <div class="imgthumb"><?php the_post_thumbnail( array(300, 300) ); ?></div>

    <div class="imgthumb"><a href="<?php _e(get_permalink($post->ID)); ?>"><?php the_post_thumbnail( array(300, 300) ); ?></a></div>

    To make the dish title link to the individual page, replace

    <h2 class="entry-title"><?php the_title(); ?></h2>


    <a href="<?php _e(get_permalink($post->ID)); ?>"> <h2 class="entry-title"><?php the_title(); ?></h2></a>

    Please note that I modified the thumbnail zoom in my code by changing array(600, 300) to array(300, 300).

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.