• Ive just been creating a custom menu and for some reason after i change the permalinks to post-name the menu stops working? Has anyone had the same problem as me?

    Also i have a logo on the top left of the screen and unable to link it to my main page i was using: <a href="<?php echo get_template_directory_uri(); ?>/front-page.php"><img src="<?php echo get_template_directory_uri(); ?>/img/logo.png" alt="Logo"/></a>

    Obviously this doesnt work…

    Any help would be useful ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • <a href="<?php echo get_template_directory_uri(); ?>/front-page.php"><img src="<?php echo get_template_directory_uri(); ?>/img/logo.png" alt="Logo"/></a>

    Why are you pointing to a theme template file? The correct markup should be:

    <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/img/logo.png" alt="Home"/></a>

    Thread Starter sh.johnson

    (@shjohnson)

    Thank you for help works fine, any ideas why the menu doesnt work when i change the permalinks around to be more SEO friendly?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Permalinks and menu’ is closed to new replies.