-
AuthorPosts
-
July 25, 2013 at 5:22 pm #189230
Hello there,
I’m working on the website http://web.armindacarbonell.com/ and I need the contents to be four columns wide, like in the picture I attach. I saw in the forum that by modifying the file wall.js (changing the 3 by a 4, as in the chunk of code that I attach) I should get that result, but it doesn’t seem to work, perhaps I’m doing something wrong. Can anyone help me, please. Thanks in advance.
$(‘<div id=”popup-content” style=”width: 1px; height: 1px; visibility: hidden;”></div>’)
.append($(‘<div id=”popup-head”></div>’).append($(‘<a href=”javascript:;” class=”close”></a>’).on(‘click’, onHide)))
.append($(‘<div id=”popup-inner”></div>’).append($(‘<iframe id=”popup-iframe” src=”‘ + url + ‘” height=”1″ width=”‘ + (jcontainer.data (‘basewidth’)? jcontainer.data (‘basewidth’) : $(‘#base-blank-item’).width()) * 4 + ‘” scrolling=”no” frameborder=”0″ />’).bind(‘load’, ifmOnload)))
.appendTo(jitem);
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
July 26, 2013 at 10:29 am #500224You need to change two places in templates/ja_lens/js/wall.js file
<blockquote>$(‘<div id=”popup-content” style=”width: 1px; height: 1px; visibility: hidden;”></div>’)
.append($(‘<div id=”popup-head”></div>’).append($(‘<a href=”javascript:;” class=”close”></a>’).on(‘click’, onHide)))
.append($(‘<div id=”popup-inner”></div>’).append($(‘<iframe id=”popup-iframe” src=”‘ + url + ‘” height=”1″ width=”‘ + (jcontainer.data (‘basewidth’)? jcontainer.data (‘basewidth’) : $(‘#base-blank-item’).width()) * 4 + ‘” scrolling=”no” frameborder=”0″ />’).bind(‘load’, ifmOnload)))
.appendTo(jitem);</blockquote>and
<blockquote>jpcontent.parent().addClass(‘item-popup-view grid-trible’).css(‘width’, (jcontainer.data (‘basewidth’)? jcontainer.data (‘basewidth’) : $(‘#base-blank-item’).width()) * 4);</blockquote>
Always remember to clear cache from the Admin area after apply any changes
1 user says Thank You to Ninja Lead for this useful post
July 26, 2013 at 1:59 pm #500239Yes!!! It works!!! Thanks very much!
AuthorPostsViewing 3 posts - 1 through 3 (of 3 total)This topic contains 3 replies, has 2 voices, and was last updated by rogerpz 11 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Conten width on the wall
Viewing 3 posts - 1 through 3 (of 3 total)