-
AuthorPosts
-
August 1, 2015 at 12:51 pm #646993
Hello,
I would like to use the pop up effect currently displayed on the home page for custom html module.
Basically I would like to include a link within a custom html module and by clicking on this link, you would have a pop up displayed.Thank you in advance
Regards
BelkacemNinja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
August 3, 2015 at 9:06 am #647534You can follow steps below
+ Go to Admin site -> Global Configuration -> under Site tabs-> set Default Editor: Editor – None
+ Go to Module Manager -> create custom html module with contain
<a href="http://joomlart.com" target="popup" onclick="window.open('http://joomlart.com','JoomlArt','width=600,height=400')">Open page in new window</a>
Hope it helps
1 user says Thank You to Ninja Lead for this useful post
August 5, 2015 at 3:09 pm #656406Thank you for your help.
I know how to set a pop up. What I would like is the same pop up type than the one on the home page.August 5, 2015 at 3:09 pm #744557Thank you for your help.
I know how to set a pop up. What I would like is the same pop up type than the one on the home page.Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
August 6, 2015 at 1:37 am #656454<em>@bmensouri 486100 wrote:</em><blockquote>Thank you for your help.
I know how to set a pop up. What I would like is the same pop up type than the one on the home page.</blockquote>It’s pretty hard to do this and you should hire development team to make the custom. You will find it from templates/ja_fixel/js/script.js file with script
(function(){
//extend click on block
$('#fixel-grid').on('click', '.items', function(e){
//do nothing
if(e.isTrigger){
return true;
}if(e && !$(e.target).hasClass('items')){
if($(e.target).parentsUntil('.items').addBack().filter(function(){
var events = $._data && $._data(this, 'events') || $(this).data('events');
if(events && events.click){
return true;
}if(this.className.match(/article-link|readmore-link|video-link/)){
return false;
}if(this.tagName.toUpperCase() == 'A' || this.tagName.toUpperCase() == 'FORM'){
return true;
}return false;
}).length){
return true;
}
}var items = $(this).closest('.items'),
href = null;if(items.hasClass('category-item')){
href = items.find('.item-title a').prop('href');
} else if(!Fixel.popup) {
href = items.find('.article-link, .readmore-link, .video-link, .item-title a').eq(0).prop('href');
}href && (window.location.href = href);
});
})();
1 user says Thank You to Ninja Lead for this useful post
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
August 6, 2015 at 1:37 am #744604<em>@bmensouri 486100 wrote:</em><blockquote>Thank you for your help.
I know how to set a pop up. What I would like is the same pop up type than the one on the home page.</blockquote>It’s pretty hard to do this and you should hire a developer to implement it for you. Please open file templates/ja_fixel/js/script.js and you will see the script as below :
(function(){
//extend click on block
$('#fixel-grid').on('click', '.items', function(e){
//do nothing
if(e.isTrigger){
return true;
}if(e && !$(e.target).hasClass('items')){
if($(e.target).parentsUntil('.items').addBack().filter(function(){
var events = $._data && $._data(this, 'events') || $(this).data('events');
if(events && events.click){
return true;
}....................................
})();
1 user says Thank You to Ninja Lead for this useful post
-
AuthorPosts
This topic contains 6 replies, has 2 voices, and was last updated by Ninja Lead 9 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum