Magento 2.0 override admin css (style.css) - magento2

I am working in magento 2.0 and want to make changes in admin login panel.
please suggest me how to override admin css files or how to add new css file.
Thanks

you need to add a custom module and define css in desired xml or if you want to add in all pages create default.xml
1) add a module Ex. Emizentech/NewAdmin
2) create a new file view/adminhtml/layout/default.xml in the module
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<css src="css/emizentech.css"/>
</head>
</page>
3) Add .css file in web folder as below path:
view/adminhtml/web/css/emizentech.css
after this you need to clear cache and deploy static content
php bin/magento cache:clean
php bin/magento setup:static-content:deploy

Better way to create child theme so when you update magento your change not remove.
You can create child theme as like created for frontend theme.
Backend this are vendor/magento/theme-adminhtml-backend.
You can get reference for create child theme from vendor/magento/theme-frontend-luma, because that this is child theme of Magento/blank, you can check that from file vendor/magento/theme-frontend-luma/theme.xml.
For more about create theme you can get reference form: http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/themes/theme-create.html

Related

Typo3 V9 Backendmodule View not found

I try to write an backend module, i start up with the ext_tables.php and so an, i create an Controller that called correctly. When i click on my module in the backend i get an error:
The technical reason is: No template was found. View could not be resolved for action "list" in class "Trendsetzer\Statistik\Controller\StatController".
In the Typoscript Browser i checked the paths and all setted correctly: EXT:ts_statistik/Resources/Private/Templates/ why they dont find the template file?
how can i show in which path they try to find the file?
For frontend and backend you have 2 different typoscript paths.
plugin.tx_myext for frontend modules and module.tx_myext for backend modules.
When I started creating extensions, I often miss adding the typoscript to my root template.
You can add this by Module "Template" -> Your Root Page -> Edit the whole template record -> Tab "Includes" -> Include static (from extensions)
Solution found, the namespace was incorrect: for extensions with underscore the namespace for extensionsn like foo_bar must be Vendor\FooBar\...
hope this helps anyone

Service Unavailable (503) No TypoScript template found

I tried to install the introduction package in Typo3 cms.
But I receive the following error:
Service Unavailable (503) No TypoScript template found!
You might need to include the package into your core template in Typo3.
Whenever you are using a new package/extension which having template files, you are needed to added those in your root template.
Go to Template Menu in the typo3 backend
Select the root page from the treelist on the left side panel (it might be Congratulations).
Choose the info/modify from the top list
click on Edit the whole template record button.
Choose the includeTab
Add the package related to it.

How to recover frontend and backend css after deploy command

I have done below steps but after this frontend and backend css fonts will not working properly in magento2.
Remove pub/static //not .htaccess
Remove var/cache
Remove var/composer_home
Remove var/generation
Remove var/page_cache
Remove var/view_preprocessed
Then open up app/etc/di.xml find the path
Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink
and replace it with Magento\Framework\App\View\Asset\MaterializationStrategy\Copy
And finally run this:
php bin/magento setup:static-content:deploy
I have been facing strange issue, as the part moving modifications in static content. we removed pub/static and deployed setup:static-content:deploy.
After doing this, files are generated properly in pub/static folder but when i load front end, styles are vanished.
As in the source the file paths are loading with version1483082446
root/static/version1483082446/frontend/Smartwave/porto/en_US/mage/calendar.css
I have followed below commands, but my styles are not loading in frontend.
Delete var/cache var/page_cache generated var/view_proceesed pub/static/frontend pub/static/adminhtml
Perform setup:upgrade di:compile content:deploy cache:flush
Give 777 permission to the pub var and generated folder.

jenkins html reports link : can't index the index.html file automatically

This is the URL without index.html at the end( it doesn't work)
And this is the one I manually add index.html to the end(it works)
ps:Ubuntu Server 14.04.2/Jenkins 1.641
I've got the same bugs.
Update your Jenkins and the Html Report Plugin. This will solve your problem

Ionic Framework unable to change content src from index.html to index.php

I am new in Ionic Framework.
So via ionic cli i started a new app with blank template to run in android platform.
What i wanted to do is to replace the index.html with index.php in my app's folder that ionic cli automatically created for me.
So i moved into the www folder of my app i deleted the index.html file and instead i created an index.php file, then i moved into config.xml file and i changed the content src to points in the index.php file instead of index.html.
The problem is that i get this error in the browser:
Error: ENOENT: no such file or directory, open 'C:\Users\user\cmsApp\www\index.html'
and seems that my app still points to the default index.html (that doesn't exists anymore) instead the php one that i replaced with.
How can i fix that?
Thank you in advance!!!
You can try to modify the config file located here :
/PathOfYourProject/Config.xml
There is a part where you can change the source :
<content src="index.html"/>
But i'm not sure that you can place PHP file here.