February 11, 2016 by Jason Flaherty
Editing Dreamweaver Templates and CSS Style Issues
*Note: is is for .php templates…
When a content editor is using Dreamweaver templates to edit the static website you are developing, it is always a chore (until now!) to have the design view show all of the editable content areas when css might be used to hide a block for example. The key I have found is to simply make the stylesheet only render on page load.
For example use:
<?php echo '<link rel="stylesheet" href="../css/yourstyle.min.css">'; ?>
…rather than just using the standard:
<link rel="stylesheet" href="../css/yourstyle.min.css">
In design view the content editor will only be able to focus on their content since all the css will be turned “off” in effect.
Hope that helps someone.