how to add home page banner slider programmatically using js code not extension magento 2?How add js and css on home page (slider) to Magento 2?Magento 2.1.7 - how to include js on just the homepageMagestore's Banner Slider not working properly(Magento 1.9)How add js and css on home page (slider) to Magento 2?How to add product to compare products using product id programmatically in Magento 2magento-2-banner-slider block not showing data in magento 2Magento 1: Banner slider not showing?Magento 2 - Home Page Content Reorder using Set PositionMagento add Image Slider getting unserialize(): ErrorMagento 1.9 Banner Slider is not displayed on the frontendHow to create new product slider in home page in Magento 2Script is not calling on Homepage Banner slider

Should we release the security issues we found in our product as CVE or we can just update those on weekly release notes?

US to Europe trip with Canada layover- is 52 minutes enough?

What is the definition of "Natural Selection"?

What is the likely impact on flights of grounding an entire aircraft series?

Is going from continuous data to categorical always wrong?

Time travel short story where dinosaur doesn't taste like chicken

My story is written in English, but is set in my home country. What language should I use for the dialogue?

What Happens when Passenger Refuses to Fly Boeing 737 Max?

Why don't MCU characters ever seem to have language issues?

The three point beverage

Potentiometer like component

What exactly is the purpose of connection links straped between the rocket and the launch pad

What is the blue range indicating on this manifold pressure gauge?

Life insurance that covers only simultaneous/dual deaths

Why would a jet engine that runs at temps excess of 2000°C burn when it crashes?

Latest web browser compatible with Windows 98

Can't remove a file with file mode bits a+rw

Sword in the Stone story where the sword was held in place by electromagnets

Make a transparent 448*448 image

validation vs test vs training accuracy, which one to compare for claiming overfit?

Can infringement of a trademark be pursued for using a company's name in a sentence?

Do I need to leave some extra space available on the disk which my database log files reside, for log backup operations to successfully occur?

Single word request: Harming the benefactor

Unreachable code, but reachable with exception



how to add home page banner slider programmatically using js code not extension magento 2?


How add js and css on home page (slider) to Magento 2?Magento 2.1.7 - how to include js on just the homepageMagestore's Banner Slider not working properly(Magento 1.9)How add js and css on home page (slider) to Magento 2?How to add product to compare products using product id programmatically in Magento 2magento-2-banner-slider block not showing data in magento 2Magento 1: Banner slider not showing?Magento 2 - Home Page Content Reorder using Set PositionMagento add Image Slider getting unserialize(): ErrorMagento 1.9 Banner Slider is not displayed on the frontendHow to create new product slider in home page in Magento 2Script is not calling on Homepage Banner slider













0
















Actually i am trying to add Home Page Slider pro grammatically using
js code not extension magento 2?











share|improve this question














bumped to the homepage by Community 2 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.



















    0
















    Actually i am trying to add Home Page Slider pro grammatically using
    js code not extension magento 2?











    share|improve this question














    bumped to the homepage by Community 2 hours ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

















      0












      0








      0









      Actually i am trying to add Home Page Slider pro grammatically using
      js code not extension magento 2?











      share|improve this question















      Actually i am trying to add Home Page Slider pro grammatically using
      js code not extension magento 2?








      magento2 banner-slider






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 5 '18 at 9:26









      hitesh balpandehitesh balpande

      3699




      3699





      bumped to the homepage by Community 2 hours ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 2 hours ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















          2 Answers
          2






          active

          oldest

          votes


















          0














          In Magento 2.x you need to Integration of the Block in to CMS



          • Go to the Admin Panel of the Magento Store and navigate to the
            Content tab from the left corner of the page. Next, click the Blocks
            option.

          • Add New Block.

          • Add the details of the Block. Enter the Block Title (Title of the
            Block) and Block Identifier (Id of the Block).

          You could add the Block in the content section by using this shortcode:



          block class="MagentoCmsBlockBlock" block_id="Banner_View"


          This will help you out.






          share|improve this answer























          • actually i am trying to get the banner slider code.

            – hitesh balpande
            Nov 5 '18 at 9:32












          • you can add js in CMS pages

            – Aaditya
            Nov 5 '18 at 9:36











          • Using following way

            – Aaditya
            Nov 5 '18 at 9:36











          • try to use requirejs for loading js. VendorName/ModuleName/view/frontend/layout/cms_index_index.xml

            – Aaditya
            Nov 5 '18 at 9:36











          • magento.stackexchange.com/questions/191838/…

            – Aaditya
            Nov 5 '18 at 9:37


















          0














          You don't need to add an extension in Magento 2 to add a simple homepage banner slider.



          1. Create your custom block or widget in your theme

          2. In your template get the data that you need from that widget and instance your js library for the slider. (Owl/Slick/Swiper/whatever you want)

          3. Include your files correctly in your theme/module/web/ folders

          4. Setup upgrade or clean cache & grunt exec/less

          5. Setup your CMS widget in your homepage CMS page and it should be there.

          If you are talking about updating your cms structure programmatically you will need to setup an upgradedata on your Block very similar to Magento 1. See: https://www.mageplaza.com/devdocs/magento-2-create-cms-pages-programmatically.html






          share|improve this answer






















            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "479"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f249065%2fhow-to-add-home-page-banner-slider-programmatically-using-js-code-not-extension%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            In Magento 2.x you need to Integration of the Block in to CMS



            • Go to the Admin Panel of the Magento Store and navigate to the
              Content tab from the left corner of the page. Next, click the Blocks
              option.

            • Add New Block.

            • Add the details of the Block. Enter the Block Title (Title of the
              Block) and Block Identifier (Id of the Block).

            You could add the Block in the content section by using this shortcode:



            block class="MagentoCmsBlockBlock" block_id="Banner_View"


            This will help you out.






            share|improve this answer























            • actually i am trying to get the banner slider code.

              – hitesh balpande
              Nov 5 '18 at 9:32












            • you can add js in CMS pages

              – Aaditya
              Nov 5 '18 at 9:36











            • Using following way

              – Aaditya
              Nov 5 '18 at 9:36











            • try to use requirejs for loading js. VendorName/ModuleName/view/frontend/layout/cms_index_index.xml

              – Aaditya
              Nov 5 '18 at 9:36











            • magento.stackexchange.com/questions/191838/…

              – Aaditya
              Nov 5 '18 at 9:37















            0














            In Magento 2.x you need to Integration of the Block in to CMS



            • Go to the Admin Panel of the Magento Store and navigate to the
              Content tab from the left corner of the page. Next, click the Blocks
              option.

            • Add New Block.

            • Add the details of the Block. Enter the Block Title (Title of the
              Block) and Block Identifier (Id of the Block).

            You could add the Block in the content section by using this shortcode:



            block class="MagentoCmsBlockBlock" block_id="Banner_View"


            This will help you out.






            share|improve this answer























            • actually i am trying to get the banner slider code.

              – hitesh balpande
              Nov 5 '18 at 9:32












            • you can add js in CMS pages

              – Aaditya
              Nov 5 '18 at 9:36











            • Using following way

              – Aaditya
              Nov 5 '18 at 9:36











            • try to use requirejs for loading js. VendorName/ModuleName/view/frontend/layout/cms_index_index.xml

              – Aaditya
              Nov 5 '18 at 9:36











            • magento.stackexchange.com/questions/191838/…

              – Aaditya
              Nov 5 '18 at 9:37













            0












            0








            0







            In Magento 2.x you need to Integration of the Block in to CMS



            • Go to the Admin Panel of the Magento Store and navigate to the
              Content tab from the left corner of the page. Next, click the Blocks
              option.

            • Add New Block.

            • Add the details of the Block. Enter the Block Title (Title of the
              Block) and Block Identifier (Id of the Block).

            You could add the Block in the content section by using this shortcode:



            block class="MagentoCmsBlockBlock" block_id="Banner_View"


            This will help you out.






            share|improve this answer













            In Magento 2.x you need to Integration of the Block in to CMS



            • Go to the Admin Panel of the Magento Store and navigate to the
              Content tab from the left corner of the page. Next, click the Blocks
              option.

            • Add New Block.

            • Add the details of the Block. Enter the Block Title (Title of the
              Block) and Block Identifier (Id of the Block).

            You could add the Block in the content section by using this shortcode:



            block class="MagentoCmsBlockBlock" block_id="Banner_View"


            This will help you out.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 5 '18 at 9:30









            AadityaAaditya

            4,02121037




            4,02121037












            • actually i am trying to get the banner slider code.

              – hitesh balpande
              Nov 5 '18 at 9:32












            • you can add js in CMS pages

              – Aaditya
              Nov 5 '18 at 9:36











            • Using following way

              – Aaditya
              Nov 5 '18 at 9:36











            • try to use requirejs for loading js. VendorName/ModuleName/view/frontend/layout/cms_index_index.xml

              – Aaditya
              Nov 5 '18 at 9:36











            • magento.stackexchange.com/questions/191838/…

              – Aaditya
              Nov 5 '18 at 9:37

















            • actually i am trying to get the banner slider code.

              – hitesh balpande
              Nov 5 '18 at 9:32












            • you can add js in CMS pages

              – Aaditya
              Nov 5 '18 at 9:36











            • Using following way

              – Aaditya
              Nov 5 '18 at 9:36











            • try to use requirejs for loading js. VendorName/ModuleName/view/frontend/layout/cms_index_index.xml

              – Aaditya
              Nov 5 '18 at 9:36











            • magento.stackexchange.com/questions/191838/…

              – Aaditya
              Nov 5 '18 at 9:37
















            actually i am trying to get the banner slider code.

            – hitesh balpande
            Nov 5 '18 at 9:32






            actually i am trying to get the banner slider code.

            – hitesh balpande
            Nov 5 '18 at 9:32














            you can add js in CMS pages

            – Aaditya
            Nov 5 '18 at 9:36





            you can add js in CMS pages

            – Aaditya
            Nov 5 '18 at 9:36













            Using following way

            – Aaditya
            Nov 5 '18 at 9:36





            Using following way

            – Aaditya
            Nov 5 '18 at 9:36













            try to use requirejs for loading js. VendorName/ModuleName/view/frontend/layout/cms_index_index.xml

            – Aaditya
            Nov 5 '18 at 9:36





            try to use requirejs for loading js. VendorName/ModuleName/view/frontend/layout/cms_index_index.xml

            – Aaditya
            Nov 5 '18 at 9:36













            magento.stackexchange.com/questions/191838/…

            – Aaditya
            Nov 5 '18 at 9:37





            magento.stackexchange.com/questions/191838/…

            – Aaditya
            Nov 5 '18 at 9:37













            0














            You don't need to add an extension in Magento 2 to add a simple homepage banner slider.



            1. Create your custom block or widget in your theme

            2. In your template get the data that you need from that widget and instance your js library for the slider. (Owl/Slick/Swiper/whatever you want)

            3. Include your files correctly in your theme/module/web/ folders

            4. Setup upgrade or clean cache & grunt exec/less

            5. Setup your CMS widget in your homepage CMS page and it should be there.

            If you are talking about updating your cms structure programmatically you will need to setup an upgradedata on your Block very similar to Magento 1. See: https://www.mageplaza.com/devdocs/magento-2-create-cms-pages-programmatically.html






            share|improve this answer



























              0














              You don't need to add an extension in Magento 2 to add a simple homepage banner slider.



              1. Create your custom block or widget in your theme

              2. In your template get the data that you need from that widget and instance your js library for the slider. (Owl/Slick/Swiper/whatever you want)

              3. Include your files correctly in your theme/module/web/ folders

              4. Setup upgrade or clean cache & grunt exec/less

              5. Setup your CMS widget in your homepage CMS page and it should be there.

              If you are talking about updating your cms structure programmatically you will need to setup an upgradedata on your Block very similar to Magento 1. See: https://www.mageplaza.com/devdocs/magento-2-create-cms-pages-programmatically.html






              share|improve this answer

























                0












                0








                0







                You don't need to add an extension in Magento 2 to add a simple homepage banner slider.



                1. Create your custom block or widget in your theme

                2. In your template get the data that you need from that widget and instance your js library for the slider. (Owl/Slick/Swiper/whatever you want)

                3. Include your files correctly in your theme/module/web/ folders

                4. Setup upgrade or clean cache & grunt exec/less

                5. Setup your CMS widget in your homepage CMS page and it should be there.

                If you are talking about updating your cms structure programmatically you will need to setup an upgradedata on your Block very similar to Magento 1. See: https://www.mageplaza.com/devdocs/magento-2-create-cms-pages-programmatically.html






                share|improve this answer













                You don't need to add an extension in Magento 2 to add a simple homepage banner slider.



                1. Create your custom block or widget in your theme

                2. In your template get the data that you need from that widget and instance your js library for the slider. (Owl/Slick/Swiper/whatever you want)

                3. Include your files correctly in your theme/module/web/ folders

                4. Setup upgrade or clean cache & grunt exec/less

                5. Setup your CMS widget in your homepage CMS page and it should be there.

                If you are talking about updating your cms structure programmatically you will need to setup an upgradedata on your Block very similar to Magento 1. See: https://www.mageplaza.com/devdocs/magento-2-create-cms-pages-programmatically.html







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 6 '18 at 20:17









                Ezequiel AlbaEzequiel Alba

                1089




                1089



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Magento Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f249065%2fhow-to-add-home-page-banner-slider-programmatically-using-js-code-not-extension%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Best approach to update all entries in a list that is paginated?Best way to add items to a paginated listChoose Your Country: Best Usability approachUpdate list when a user is viewing the list without annoying themWhen would the best day to update your webpage be?What should happen when I add a Row to a paginated, sorted listShould I adopt infinite scrolling or classical pagination?How to show user that page objects automatically updateWhat is the best location to locate the comments section in a list pageBest way to combine filtering and selecting items in a listWhen one of two inputs must be updated to satisfy a consistency criteria, which should you update (if at all)?

                    Вунгтау (аеропорт) Загальні відомості | Див. також | Посилання | Навігаційне меню10°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.0833310°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.083337731608Vinh AirportVinh airport facelift improves serviceвиправивши або дописавши їївиправивши або дописавши їїр

                    Тонконіг бульбистий Зміст Опис | Поширення | Екологія | Господарське значення | Примітки | Див. також | Література | Джерела | Посилання | Навігаційне меню1114601320038-241116202404kew-435458Poa bulbosaЭлектронный каталог сосудистых растений Азиатской России [Електронний каталог судинних рослин Азіатської Росії]Малышев Л. Л. Дикие родичи культурных растений. Poa bulbosa L. - Мятлик луковичный. [Малишев Л. Л. Дикі родичи культурних рослин. Poa bulbosa L. - Тонконіг бульбистий.]Мятлик (POA) Сем. Злаки (Мятликовые) [Тонконіг (POA) Род. Злаки (Тонконогові)]Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Description from Flora of China) [Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Опис від Флора Китаю)]Poa bulbosa L. – lipnice cibulkatá / lipnica cibulkatáPoa bulbosa в базі даних Poa bulbosa на сайті Poa bulbosa в базі даних «Global Biodiversity Information Facility» (GBIF)Poa bulbosa в базі даних «Euro + Med PlantBase» — інформаційному ресурсі для Євро-середземноморського розмаїття рослинPoa bulbosa L. на сайті «Плантариум»