You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MAY BE YOU COULD USE THIS FILTER...ITS ALL YOU NEED TO ADD A TEMPLATE...
You can add it in your plugin, or (not tried) I think you can add it too in
functions.php ...
Godd luck
ADD TEMPLATE TO PLUGIN WORDPRESS
add_filter( 'page_template', 'add_template_to_page_my_own_function' );
function add_template_to_page_my_own_function( $page_template )
{
if ( is_page( 'my-custom-page-slug' ) ) {
$page_template = dirname( __FILE__ ) . '/custom-page-template.php';
}
return $page_template;
}
On Wed, Jun 6, 2018 at 4:58 PM, Essymay ***@***.***> wrote:
How would I get this to work on the index page? I've tred calling my
template file home.php , page.php and front-page.php
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#19>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AFwfide4yj-LGwJZ0of8SEdmth5FetOAks5t5-4TgaJpZM4Uc0N9>
.
--
best regards / med venlig hilsen / mis mejores saludos
Jarim Ortega
[email protected]
How would I get this to work on the index page? I've tred calling my template file home.php , page.php and front-page.php
The text was updated successfully, but these errors were encountered: