• Resolved CEMBTW

    (@cembtw)


    When an image has only a “credit” and not a “link”, the credit displays inside an <a>, with an href of the current page, instead of just displaying without an anchor.

    Is this intentional? Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Claude Vedovini

    (@cvedovini)

    Hi, what’s displayed depends on the template you set up in the options page, if you put an anchor there will be an anchor, if there is no credit link that anchor will be empty.

    Thread Starter CEMBTW

    (@cembtw)

    Then I guess my issue is that I can’t have a different template for when there is no [link].

    I ended up putting an if in get_single_image_credits()

    		if ($link == '') { 
    			$template = '[source]';
    		} else {
    			$template = IMAGE_CREDITS_TEMPLATE;
    		}

    I’m not sure that == '' is the best test to use here, but so far it does what I want.

    Plugin Author Claude Vedovini

    (@cvedovini)

    strange tho that you give credit to a source but you don’t have a link to that source, no?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Images Without Links Still Use Anchors’ is closed to new replies.