add image in sidebar form login, register, reset pass only

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.

add image in sidebar form login, register, reset pass only

Postby creat015 » Wed Jan 10, 2018 12:16 am

Hello Sir

i want to ask

how to add a image in sidebar (under the menu on the left) login page, register page, and reset password page only ?

i try to edit login.php but not have class "main-sidebar" for put the code image

i try to change in phpmaker theme setting/style only change color sidebar can not add a image
creat015
 
Posts: 12
Joined: Sat Dec 23, 2017 1:39 am

Re: add image in sidebar form login, register, reset pass on

Postby arbei » Wed Jan 10, 2018 11:50 am

You can use the Startup Script to add your image to the menu item.

For example:
<?php if (CurrentPageID == "login") { ?>
$(".ewVertical").append("<the image tag>");
<?php } ?>

Read help file topic: "Server Events and Client Scripts" -> "Startup Scripts" for more information.

You can also use Auto Render template (v2018), read help file topic: "Server Events and Client Scripts" -> "Page_Foot" for more information.
arbei
 
Posts: 1499
Joined: Wed Sep 09, 2015 10:13 am


Return to General Discussion (PHPMaker)