displaying a image
-
Hello,
Thanks for creating this great plugin.
I have three questions.
1.
I want to display a image on the specific place.I am using the code below on “code snippets” plugin.
But I cannot change the place of the image after changed the value of “top *%” and “left *%”.
(The image does not move from default place.)How can I change the image place?
add_action('wcdn_after_branding','add_extra_image', 10, 2);
function add_extra_image(){
if (wcdn_get_template_type() === 'receipt') {
?>
<style>
/* when screen is less than 600px wide show mobile version and hide desktop */
@media ( max-width: 600px ) {
.extra-image-mobile .extra-image {
display: block;
}
.extra-image-mobile {
position:absolute;
opacity:1;
top: 7%;
left: 30%;
}
.extra-image .extra-image-desktop {
display: none;
}
}
/*when screen is more than 800px wide show desktop version and hide mobile */
@media ( min-width: 800px ){
.extra-image-desktop {
position:absolute;
opacity:1;
left: 30%;
top: 7%;
}
.extra-image .extra-image-mobile {
display: none;
}
}
</style>
<div class="extra-image">
<img src="https://www.aaaaaaaaaaaaa.com/stamp.png" class="extra-image-mobile" width="100" height="100" alt="stamp">
</div>
<?php
}
}I would like to display a image around here.
2.
How can I display same image on “invoice” and “delivery notes” as well?3.
I dont want to display “publish date” and “domain directory URL” and “document title”.(Two green parts on the picture below)
How can I solve this problem?
I am using Google chrome and Microsoft Edge
Hope your reply soon.
Best
- The topic ‘displaying a image’ is closed to new replies.