Skip to main content
Participant
June 8, 2021
Question

Use CSS File in include file without using L-INK

  • June 8, 2021
  • 1 reply
  • 160 views

hi, 

we're using PHP File in whiche we include some files with e.g. navigation contenten and footer.

 

include ($cfgPath['elements'].'standard1.inc.php');
include ('./my-content.inc.php');
include ($cfgPath['elements'].'standard2.inc.php');

 

If I working on my-content.inc.php, I don't have all the style from our stylesheet, whiche will be includes in standard1.inc.php. In earlier versions of DW you could hook up a desing CSS file, which was uses in DW to show the propper design. In the current version I don't see a way to use the stylesheet without linking it with 

 

<link href="/lib/bootstrap-4.6.0/css/custom_main.min.css" rel="stylesheet" type="text/css">

 

And solutions or ideas?

 

TXS for yxour help.

    This topic has been closed for replies.

    1 reply

    Nancy OShea
    Community Expert
    Community Expert
    June 8, 2021

    1. Are you working in a defined local site folder?  Site > Manage Sites...

     

    2. Did you attach a stylesheet to your parent document?  Tools > CSS > Attach Stylesheet > Link to the CSS file that is in your local site folder.

     

    3. Switch to Live View from your Document Toolbar or use Ctrl + Shift + F11 to toggle between Design & Live view.

     

    Hope that helps.  Post back if you have more questions.

     

    Nancy O'Shea— Product User & Community Expert