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.
Post Reply
creat015
User
Posts: 79

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

Post by creat015 »

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


arbei
User
Posts: 9284

Post by arbei »

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.


strustam
User
Posts: 33
Location: Tajikistan

Post by strustam »

Thanks

you save my time

$(".ewVertical").prepend("<img style='display:block;margin:auto;padding-top:15px;padding-bottom:15px' src='phpimages/logo.png'>");


Post Reply