WordPress.org

Ready to get started?Download WordPress

Forums

How to open image in a new window with ads around the image? (8 posts)

  1. COOLEVO
    Member
    Posted 1 year ago #

    How to open image in a new window with ads around the image?

    For example if you go to 2013 Maserati Quattroporte Wallpapers and click on any image the image will open in the same window like that Maserati-Quattroporte-Wallpaper.jpg but i want it to be opened in a new window and with ads around the wallpaper.

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Contact your theme's vendors for issues regarding their theme.

  3. COOLEVO
    Member
    Posted 1 year ago #

    Its not related to the vendors, there is no issues.
    I just want to make my blog better.

    Should be some PHP code to make it.

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    You'd likely need to create a custom template:

    http://codex.wordpress.org/Stepping_Into_Templates

    and to open in a new window -- see this:

    http://www.w3schools.com/html/html_links.asp

  5. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    possibly create a custom made image.php and edit all images to link to the 'attachment page'

  6. COOLEVO
    Member
    Posted 1 year ago #

    @alchymyth
    Can you explain me how to link the image to the page?
    thanks.

  7. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    when you insert an image, you have some choices where the image links to:
    http://imageshack.us/photo/my-images/525/imageattachmentlink.jpg/

    when you edit an image, you have (weirdly) some less choices where the image links to:

    http://imageshack.us/photo/my-images/547/imageattachmentlinkedit.jpg/

    if you manage to link to the 'attachment link' then image.php would get used to show the image ...

  8. COOLEVO
    Member
    Posted 1 year ago #

    @alchymyth
    If i will change the link to the "attachment link" then the image will show the "thumb" in the "attachment link" and not the full size image.

    I need some way to make the image open in a new window with the name of the wallpaper (good for SEO) and show 3 ads around the full size wallpaper, one of the top, one on the left side and one under the image.

Topic Closed

This topic has been closed to new replies.

About this Topic