Hello, please help give me the customization code for make my specific single course as a homepage
@yudhafebrian,
Can you please share some screenshots which home page you are referring.
i just sell 1 course only, so i want when people visit my site they don't need to see landing page or anything, but i want they directly see my single course like this: https://prnt.sc/iouoc6
maybe in my imagination is like this: http://prntscr.com/iouq91
i make a homepage, but i insert a single course ID so they directly see my specific single course page.
Well there is not such shortcode available in theme as of now.
What we can do is to redirect your home page to this course .
for that Im providing custom code that you can add into your wplms-customizer.php file in wplms customizer plugin :
add_action('template_redirect',function(){
if(is_home() || is_front_page()){
wp_redirect(get_permalink(1));
exit;
}
});
change " 1 " in above code to course id.
Hi,
I am trying to accomplish the same thing, however, the code above doesn't seem to work?
Am I missing something?
This reply has been marked as private.
Hi Ray,
The reply is marked private... How can I see it?
@Wiserfy,
@Ray marked it as a private reply because the reply has your site link. You are unable to see that reply because you are not the topic creator.
He wrote that your site is not accessible.
Make sure the code which is given above, you have to paste it at a right placei.e. wp-admin > Plugins > Editor > Select WPLMS Customizer Plugin > wplms-customizer.php
If still your issue not resolve then please create your own topic and share your site admin credentials in a private reply to check this issue because this is someone else's topic and it is not safe to share your credentials on others topic