Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › How to insert image in Dashboard Widget
- This topic has 17 replies, 3 voices, and was last updated 4 years, 7 months ago by logan.
-
AuthorPosts
-
August 15, 2019 at 6:00 pm #222470Nando13ParticipantHello there, Is it possible to include an image or icon besides the student dashboard stats? Like: 8 Units IconAugust 16, 2019 at 5:55 am #222492DianaParticipant@Nando13, you can try this widget: http://prntscr.com/otc5lm for inserting image and show in the dashboard But if you want to show images here: http://prntscr.com/otc6dk Then I can try with some custom cssAugust 16, 2019 at 12:13 pm #222633Nando13ParticipantYes, I want the images to show in the dashboard widget (second option). How Can I do it?August 16, 2019 at 2:23 pm #222661Nando13Participant?August 17, 2019 at 1:50 pm #222744loganMemberhello, please share the images that you want to set there and let me know this:
- it will appear before the content or after?
- also, let me know if you want to add some icons instead of pic??
- or you want to set the background of that area.
August 17, 2019 at 2:14 pm #222754Nando13ParticipantHello there, It's images like this: https://imge.to/i/V79O0 One image per widget stats box, after the stats number. Like this: https://imge.to/i/V7ufr-
<li style="box-sizing: border-box; background: none; margin: 0px; list-style: decimal;">it will appear before the content or after? AFTER
<li style="box-sizing: border-box; background: none; margin: 0px; list-style: decimal;">also, let me know if you want to add some icons instead of pic?? JUST PIC
<li style="box-sizing: border-box; background: none; margin: 0px; list-style: decimal;">or you want to set the background of that area. NO, JUST A PIC BESIDES THE NUMBER STATS,
August 19, 2019 at 10:24 am #222853loganMemberHello, please share your page URL with admin credentials. I need to access your dashboard to fetch the page-specific classes. the thing you are asking that's not available in wplms but we can try to add this with custom CSS. give me access then i will check how wonderful it goes.August 19, 2019 at 2:08 pm #222918Nando13ParticipantHow can I share the credentias directly to you?August 19, 2019 at 2:17 pm #222919Nando13ParticipantHi there, I've just sent the credentials to [email protected]August 20, 2019 at 7:25 am #222988loganMemberThis reply has been marked as private.August 20, 2019 at 1:04 pm #223062Nando13ParticipantOk, How's it going?August 21, 2019 at 6:13 am #223112loganMemberThis reply has been marked as private.August 21, 2019 at 12:23 pm #223184Nando13ParticipantThis reply has been marked as private.August 22, 2019 at 8:14 am #223288loganMemberHello, after using lots of code we could append the image tag before h3 tag. it will look like this
$('.dash-stats').prepend('<img id="theImg" src="http://localhost/wptest/wp-content/uploads/2016/02/banner1-1-460x276.jpg" width="50px"/>'); .dash-stats { display: grid; grid-template-columns: 100px 1fr; justify-items: center; align-items: center; } i do not find this helpful. refer: https://cl.ly/92170aAugust 22, 2019 at 1:33 pm #223333Nando13ParticipantHello there, This script must be inserted in wich file? and like I said, the intend is having a different image for each dashboard box. For example: Image 1 to Dashboard div of number of units Image 2 to Dashboard div of number of courses Image 3 to Dashboard div of number of quizzes How Can I Do this? -
AuthorPosts
- The topic ‘How to insert image in Dashboard Widget’ is closed to new replies.