0

when i go customer login and customer module and custom_module related pages

button is not showing

enter image description here

when i move a mouse over that button the button is showing

how to solve this css color issue

enter image description here

when untick the default css in inspect element button color is showing how i fix this..???

enter image description here

  • add the css for your button to your custom theme's css – magefms Mar 27 at 5:57
  • where.................. – prabhakaran7 Mar 27 at 5:58
  • from here app\design\frontend\YourThemeVendor\yourThemeName\Magento_Theme\web\css\custom.css – magefms Mar 27 at 6:00
  • for my custom module – prabhakaran7 Mar 27 at 6:03
  • 1
    you can try .primary.action.primary{ background: #0088cc !important; /* color blue, you can change according to your needs */ } – magefms Mar 28 at 10:48
0

You have to use custom css in order to fix that one.
In your case, using a custom module you can insert your custom css to the head block of your Magento webshop.

Try this:

  1. create a custom.css file inside vendor\module\view\frontend\web\css\custom.css

and put this code:

/* your button id is send2 */    
#send2{
    background: #0088cc !important; /* color blue, you can change according to your needs */
}  
  1. Then create a default.xml in your layout folder vendor\module\view\frontend\layout\default.xml

and put this code:

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <head>
        <css src="vendor_module::css/custom.css" />
    </head>
</page>  

After doing the above solution, please run an upgrade and redeploy static contents.
Note: vendor is your vendor name and module is your module name.

Then check if it works.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.