Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Header color change

    General Discussion
    3
    9
    287
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      aghaeian last edited by

      i want to change header color in desktop and mobile.
      please help to do this.
      i install bagisto on cpanel host.
      Screenshot 2024-10-15 at 10.43.41.png

      1 Reply Last reply Reply Quote 0
      • Rishabh-Webkul
        Rishabh-Webkul last edited by

        Hello @aghaeian

        To change the background color of header navigate the below file

        For Desktop

        packages >> Webkul >> Shop >> src >> Resources >> views >> components >> layouts >> header >> desktop >> bottom.blade.php

        add your background color in the class as shown below.

        dsdvvA.png

        Desktop frontend

        sfvs.png

        For Mobile View

        packages >> Webkul >> Shop >> src >> Resources >> views >> components >> layouts >> header >> mobile >> index.blade.php

        add your background color in the class as shown below.

        wrbswb.png

        Mobile View Frontend

        WEag.png

        Thanks & Regards

        A 1 Reply Last reply Reply Quote 0
        • A
          aghaeian @Rishabh-Webkul last edited by

          @Rishabh-Webkul Thank you for your response. I try to change that but only black and white color is work. i want to set other custom color.

          A 1 Reply Last reply Reply Quote 0
          • A
            aghaeian @aghaeian last edited by

            @aghaeian i try this. Screenshot 2024-10-16 at 13.46.50.png

            A 1 Reply Last reply Reply Quote 0
            • A
              aghaeian @aghaeian last edited by

              @aghaeian also in your sample too after change color icons and tex is not showing because thats color is black. How i can change that's color?

              1 Reply Last reply Reply Quote 0
              • A
                amit-webkul last edited by

                Hello @aghaeian ,

                As I see in your recent response, you are trying to change the header color, and you did with the help of @Rishabh-Webkul. However, the actual result is not showing on your storefront because you're using the new Tailwind class bg-blue-500, which has not been built into the assets.

                To resolve this, you need to follow the steps below to rebuild the assets after modifying the classes:

                Step 1: Navigate to the shop folder and open the integrated terminal.

                Step 2: Run the command npm install to install the required NPM packages.

                Step 3: Run the command npm run build to rebuild the assets.

                Please let us know if you encounter any issues while following these steps.

                A 1 Reply Last reply Reply Quote 0
                • A
                  aghaeian @amit-webkul last edited by

                  @amit-webkul i install npm and fix issues but color not changed.

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    amit-webkul @aghaeian last edited by

                    @aghaeian

                    Have you run the command npm run build??

                    Because whenever we add new tailwind classes, we need to compile that class, and for in development mode compliance, we are using the command npm run dev which will compile your css in the live mode. After completing the development, you need to run npm run build for the final build.

                    A 1 Reply Last reply Reply Quote 0
                    • A
                      aghaeian @amit-webkul last edited by

                      @amit-webkul Hello, Thank you i can fix that and can change color. i run npm run build in shop folder.

                      1 Reply Last reply Reply Quote 1
                      • First post
                        Last post