Skip to main content

Timeline for Magento 2 create module block

Current License: CC BY-SA 3.0

22 events
when toggle format what by license comment
Nov 28, 2017 at 12:17 comment added Robert I add this 'banner' here in this code: require([ 'jquery', 'jquery/ui'], so the final code will look require([ 'jquery', 'jquery/ui','banner']
Nov 28, 2017 at 12:14 comment added Ronak Chauhan is there anything extra you did except my solution?
Nov 28, 2017 at 12:12 vote accept Robert
Nov 28, 2017 at 12:12 comment added Robert I solved I add here require([ 'jquery', 'jquery/ui'] this 'banner' and everything seems to work okay now, thank you very much for your help
Nov 28, 2017 at 12:08 comment added Robert if I use your last code for javascript my custom js file is not loaded anymore
Nov 28, 2017 at 12:02 comment added Ronak Chauhan Yes, You have to use Parent as Luma theme for your custom theme. but yes, I had same issue which resolved using my code.
Nov 28, 2017 at 12:00 comment added Robert thank you so much for your help, is the same, maybe there we need to add some noconflict? is the default luma theme
Nov 28, 2017 at 11:58 comment added Ronak Chauhan Check update answer. add extra code into your banner js
Nov 28, 2017 at 11:57 history edited Ronak Chauhan CC BY-SA 3.0
Updated Answer
Nov 28, 2017 at 11:52 comment added Robert yes indeed please take a look I update my post to see the entire javascript code
Nov 28, 2017 at 11:50 comment added Ronak Chauhan jquery is not a function. this is the error right?
Nov 28, 2017 at 11:48 comment added Robert the div is okay is there, but my custom javascript is not loaded, I have the error is not a function
Nov 28, 2017 at 11:44 comment added Ronak Chauhan add some div content in your phtml file and then check it
Nov 28, 2017 at 11:42 comment added Robert this is not important, in the phtml file in head will be only the javascript
Nov 28, 2017 at 11:39 comment added Ronak Chauhan Do you need slider in header part?
Nov 28, 2017 at 11:38 comment added Robert I really don't know I think is a js declaration
Nov 28, 2017 at 11:34 comment added Ronak Chauhan Block issue or js declaration issue?
Nov 28, 2017 at 11:34 comment added Ronak Chauhan What is the exact issue?
Nov 28, 2017 at 11:32 comment added Robert you have any idea what is wrong?
Nov 28, 2017 at 11:32 comment added Robert thank you that js is not work very well I read and must be declared like this: jQuery(document).ready(function(){ jQuery(document).banner(
Nov 28, 2017 at 11:29 history edited Ronak Chauhan CC BY-SA 3.0
added 42 characters in body
Nov 28, 2017 at 11:24 history answered Ronak Chauhan CC BY-SA 3.0