• Resolved mrcurrie

    (@mrcurrie)


    Hi can anyone help i am not sure how to specify a specific picture to print ? i dont know what this means ? can anyone help ?

    ELEMENT
    [print-me target=”body”]

    CLASS
    [print-me target=”.element_class_to_print”]

    ID
    [print-me target=”#element_id_to_print”]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor twinpictures

    (@twinpictures)

    Here is a link if you are intrested in learning about jQuery Selectors. If you just want to print a specific photo, please share a link to the page and describe which photo you want to target. We will provide you with the required shortcode and explain the logic behind it.

    Thread Starter mrcurrie

    (@mrcurrie)

    Hiya thanks here is the link
    https://www.top10better.com/no-4-low-carb-chocolate-lasagna-no-bake/
    and the image is the the low car choc lasagna.

    Plugin Contributor twinpictures

    (@twinpictures)

    the image is the the low car choc lasagna

    uhh… there are a number of images that match that description.
    Are you referring to this one?

    If so, how are you inserting it into the page?

    Plugin Contributor twinpictures

    (@twinpictures)

    ok, so this is what you need to do.
    Frist, wrap the image in a div and give this div a unique ID:

    <div id="chocolasag">...your image code goes here...</div>
    

    Then, simply target the wrapping container by assigning the id using the target attribute like so:

    [print-me target="#chocolasag"/]
    
    Thread Starter mrcurrie

    (@mrcurrie)

    Hi, thanks . when you say wrap the image in a div its still language i do not understand ..

    I have this code on the page for one image

    can you use laymans language please ?? i do not know what targeting the wrapping container means and where is the photo id in the media section when i click on the image ?

    Thread Starter mrcurrie

    (@mrcurrie)

    lol the photo come up ,,,,, erm i will try to show the code

    <img class=”aligncenter wp-image-414″ src=”https://www.top10better.com/wp-content/uploads/2018/01/TOP-10-TEMPLATE.png&#8221; alt=”” width=”900″ height=”1442″

    Plugin Contributor twinpictures

    (@twinpictures)

    OK, do you have anyone that can support you a little technically? If not we offer a very high level of personal support with our pro plugins.

    As explained above you need to wrap the image in a div and give this div a unique ID like so:

    <div id="chocolasag">
    <img class="aligncenter wp-image-414" src="https://www.top10better.com/wp-content/uploads/2018/01/TOP-10-TEMPLATE.png" alt="" width="900" height="1442" />
    </div>
    

    And then target this div using the target attribute:

    [print-me target="#chocolasag"/]
    

    Best of luck.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘how to print a specific picture on page’ is closed to new replies.