• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
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 15 Oct 2024, 07:45

    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 15 Oct 2024, 11:41

      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 16 Oct 2024, 10:41 Reply Quote 0
      • A
        aghaeian @Rishabh-Webkul last edited by 16 Oct 2024, 10:41

        @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 16 Oct 2024, 10:47 Reply Quote 0
        • A
          aghaeian @aghaeian last edited by 16 Oct 2024, 10:47

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

          A 1 Reply Last reply 16 Oct 2024, 14:57 Reply Quote 0
          • A
            aghaeian @aghaeian last edited by 16 Oct 2024, 14:57

            @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 17 Oct 2024, 05:14

              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 17 Oct 2024, 08:12 Reply Quote 0
              • A
                aghaeian @amit-webkul last edited by 17 Oct 2024, 08:12

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

                A 1 Reply Last reply 18 Oct 2024, 04:21 Reply Quote 0
                • A
                  amit-webkul @aghaeian last edited by 18 Oct 2024, 04:21

                  @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 18 Oct 2024, 10:03 Reply Quote 0
                  • A
                    aghaeian @amit-webkul last edited by 18 Oct 2024, 10:03

                    @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
                    6 out of 9
                    • First post
                      6/9
                      Last post