-
Are there any guidelines or premade when starting a theme with mantle? I'm not quite sure able to comprehend the routing in Mantle. I have setup a basic theme,
inside the index.php <!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<?php do_action('get_header'); ?>
<div id="app">
</div>
<?php do_action('get_footer'); ?>
<?php wp_footer(); ?>
</body>
</html> Created a homepage route, Route::get( '/', function() {
return 'Hello!';
} ); However, the route isn't intercepting the index.php and keeps displaying the index.php content instead of from the registered route one. |
Beta Was this translation helpful? Give feedback.
Answered by
iniznet
Aug 18, 2022
Replies: 1 comment
-
Reinstalled the mantle and the routing started working, no idea why. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
iniznet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reinstalled the mantle and the routing started working, no idea why.