Overwriting default CSS and JS in CakePHP 3

318 views Asked by At

How do I remove the current CSS files from CakePHP 3 and add my own?

I have removed these codes from default.ctp:

<?= $this->Html->css('base.css') ?>
<?= $this->Html->css('cake.css') ?>
<?= $this->fetch('script') ?>

But still its showing the default CSS?

1

There are 1 answers

2
timstermatic On BEST ANSWER

In CakePHP 3 the default install carries the full HTML document in Templates/Pages/home.ctp. Try to remove it there also.