Instagram images target blank

1 reply · opened Aug 29, 2018

TtgouveaAug 29, 2018

How can I set the Instagram images to open in a new tab?

SSemicolon WebSTAFFSep 6, 2018

Hello,

This is Definitely Possible!

Please find the following code in the js/functions.js File inside the instagramPhotos: function( c_accessToken, c_clientID ) Function Block:

var feed = new Instafeed({
	target: instaGramTarget,
	get: instaGramType,
	userId: Number(instaGramUserId),
	limit: Number(instaGramCount),
	sortBy: instaGramSortBy,
	resolution: instaGramRes,
	accessToken: c_accessToken,
	clientId: c_clientID
});

and replace it with:

var feed = new Instafeed({
	target: instaGramTarget,
	get: instaGramType,
	userId: Number(instaGramUserId),
	limit: Number(instaGramCount),
	sortBy: instaGramSortBy,
	resolution: instaGramRes,
	accessToken: c_accessToken,
	clientId: c_clientID,
	template: '[
![attachment]({{image}})
]({{link}})'
});

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard