Get style sheets to work in the header.php and associated files
Let's say I created a file header.php in my includes folder. And I include in my index.php file in the root directory of the site.
Then in the header.php file, I have a link to the style sheet.
The question that I've always found is that you can't get the header.php file to apply the style sheet.
I can operate using global links, however I don't want to do that I have to cancel them before I have download site. (And I forgot...)
Anyway, I came up with this code today to try to solve this problem. Here is my header up to now file:
"; } else echo ' ';? >
Here is what it does:
1. we create a variable called $directory that corresponds to the current directory.
2. then what it will create another variable called $currentFolder which is equal to, or not the variable $directory contains the word "includes".
3 then he said: If $currentFolder is true, then it has the location of the style sheet with respect to the header.php file.
4. other - if it IS false then the style sheet is located in a location with regard to the files in my root directory.
This works perfectly well... in Live view mode. The header.php and index.php formats the header using live view. Nor will however be the format in Design view. That sucks cause I was pretty happy that I came up with this code on my own.
The reason why it is not working in Design view - I realize now--is because Dreamweaver will not deal with this script in Design view.
Does anyone know how to get this script to run in design mode? Or maybe some suggestions on modifying this code to run in design mode?
Thank you!
> The question that I've always found is that you can't get the header.php file to apply the style sheet.
Right. This is because, it seems that you already understand this, the relative location of the css file is different from the point of view of the header file and the file parent. Because the header file is included in the parent on the server, the client then sees the css file in the wrong place.
The solution is to use stylesheets for the time Design. It will be worth the css of the page at design time only - it will not actually insert the css file in the code. So, insert the reference of css in the header of the point of view of the parent file - index.html. Then add a design time style sheet. It should work.
Tags: Dreamweaver
Similar Questions
-
Laptop must have been left on. Last night power Outtage. I went back and put the computer to find guests requiring that I created a user, I did. Now, I can't find the original user and all files seem to have disappeared. Have Vista
Hello
1. don't you make changes on the computer before this problem?
2. do you remember the exact and complete message on this line?Check if you can find the user original files of accounts in the following path:
C:\Users\[user account name]The article could be useful to you.
Difficulty of a corrupted user profile
http://Windows.Microsoft.com/en-us/Windows-Vista/fix-a-corrupted-user-profile -
I can't get my headphones to work. The people can hear me but I can't hear them on Skype. I can get them reactivate.
Hello
· The headset works fine on another computer?
· You are able to use the headset with any other application?
· Is - what the computer speakers are working well?
· The headset worked fine before?
This could be a problem with the headphones itself, you can contact the manufacturer for the same thing.
-
How to get google hangouts to work on the Surface RT?
Is it possible to actually get google hangouts to work on the Surface RT? I installed 2 google apps, but two of them are trying to open in the browser explore who told me that the meeting places is not supported on RT. Are there no work around? My whole family that uses and I can't join them in discussions.
Google has publicly stated that they have no interest in Microsoft platforms. For the most part, Google think that if you want to use Google products, you need to buy a computer from Google (chromebook, android tablet, android phone, etc.). It's a very sad state of affairs.
-
I imported a piece of vector art that shows a man wearing a t-shirt and blue jeans. I want to change the color of the t-shirt, but, when I 'select', not only the GET selected shirt made from the head, arms and blue jeans guy. How do I isolate the image so I am just by selecting the t-shirt?
Gabriel,
What happens if you click the fill with the direct Selection tool, and then try?
Or try to locate T shirt in the layer in the layers palette and select there, then try? You may need to click one or more arrows to look in under/groups/cutting masks / whatever.
-
When I insert my file "adobe" edge oam animate in must get a rectangular white flash at the head of the animation?
Hello
I would appreciate if you could share the screenshots of the Design view and mode of preview for better understanding of the issue.
You can also create a temp BC to us URL.
Concerning
Vivek
-
Anyone who works with the CAF (Caltech intermediate Format) files in LabVIEW?
Hey everybody,
Anyone who works with the CAF (Caltech intermediate Format) files? These are files that are generated by IC layout programs, such as TannerEDA L-Edit, that define the layers and arrangement of the masks used in VLSI (Photolithography) of processing semiconductor device.
I would like to analyse these CIF files to generate a map of wafer of devices for use in the-plate test. Currently, a plan of shooting is made and then I manually switch and define coordinates of line and column for the edge of a plate and various places of drop-in. I would like to automate this process, and I don't know if it is possible by playback of these files from the CAF. However, I don't really know how to read them, and I can get as much information from the Wikipedia page and the original article.
So I ask: anyone has an easier set of screws that make reading CIF file? Or someone working with them can help me with my problem? I can describe it in much better detail once someone comes...
Here is one of my notebooks CIF of Mathematica (remove the .txt extension obviously). I used it to create a new CIF file with four instances of the object in a file.
You can load a file with the following text:
symName = loadCIF;
You can see the layers:
CIFlayers [symName]
You can view layers:
Show [{viewCIFlayer [symName, #, color of layer]}]
(if you wish, add multiple layers to the list)
If you have a file of type CIF I can also test to see that it recognizes the objects you use, I am generally to polygons and boxes.
-
Download photos of Nikon D90 Photos OS El Capitan 10.11.16 cable does not work. The picture freezes and does not matter. Any ideas?
Try with Capture of Image (in your applications folder)
LN
-
loads of YouTube but then when I click on a video it doesent play. It worked fine the other day and it does not work in the past and suddenly. Help, please!
Clear the cache and cookies from sites that cause problems.
"Clear the Cache":
- Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.
'Delete Cookies' sites causing problems:
- Tools > Options > privacy > Cookies: "show the Cookies".
Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).
- Makes no changes on the start safe mode window.
- https://support.Mozilla.com/kb/safe+mode
-
When I try to use automatic dates, I get code 8007005. I ran the check disk and there is no problem here.
Hello
see if that helps to fix:
How to reset the Windows Update components?
There is also an automatic 'fix - it' here
http://support.Microsoft.com/kb/971058
Also, try to put the KB numbers in the search on the link below and then manually download the
http://www.Microsoft.com/downloads/en/default.aspx
or please repost your question in the correct windows update forum
http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-windows_update?page=1&tab=all
-
Original title: help & support files
Windows 7 Professional. All help & support files have disappeared. I get the message "help and support files cannot start."
How to return please?.
Perhaps. An analysis of file system I think would replace the help files, but you can try it, there is no harm. Just open a command prompt (right click and "open as Administrator"), and then type sfc/scannow
-
I forgot my password to get on my computer like im the main user and have my password need anything I don't have a reset disk please help
Hello, sxyria
Unfortunately, we are unable to provide assistance in bypassing the security or the recovery of passwords.
David
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
I'm trying to download the trial version for Acrobat DC edit PDF files, but when download initializes, it gets to 11%, gets stuck, then gives the message "request from Web Get failed. I canceled, downloaded the installer again and got the same result. I'm on a PC running Windows 8. Any suggestions?
Hiddm93421458,
Restart your system and then try again to install Acrobat Reader DC using this link Download Adobe Acrobat free trial | Acrobat Pro DC.
Let me know if the problem persists.
Kind regards
Nicos
-
I live in a rural area that does not have consistent internet access. questions: what I have to have internet access to work with the ambient light and photoshop or is the program downloaded on my computer while I did not need to be online?
That is, the work programme is located in my computer or is it online?
Thank you.
adobe (and perpetual license) subscription programs are installed on your computer. You need to be online for installation and activation, and then you must be online periodically thereafter.
with a monthly subscription, one time every 30 days is necessary to maintain your activation. for an annual subscription, all 91 days once is enough. These checks online to check your license status.
-
works of the charging dose and signs in the application
works of the charging dose and signs in the application
the doc is already a pdf
who needs to be filled several times
It works on adobe in windows 7
Salvation;
The "Fill & sign" tab on the site Web of Acrobat.com https://cloud.acrobat.comare you referring? Here's a tutorial to fill & sign Tutorial: Introduction to Adobe fill & sign
Thank you
Josh
Maybe you are looking for
-
Re: Satellite L655-11N - Webcam does not appear on the video chat
Hello, recently I had a problem with my webcam on Toshiba L655-11NIt worked perfectly when I chat with my friends on Facebook, Yahoo, Skype But now I can see my friends, but they cannot see me, even the webcam does not appear on my screen even though
-
I have a HP Color LaserJet 2605dn. It worked very well with the Microsoft Vista operating system. I just bought a computer with operating system Windows 8 home and now my printer won't do the double sided printed (not the manual double-sided, but pri
-
loaded Windows 7 and now my online games continue to be disconnected___
loaded Windows 7 and now my games online keep get disconnected. they remain connected for only a minute. I've updated all the drivers and windows.
-
Laptop 15-R205TU: broken hinges and must be replaced
Hello I bought this laptop only 4 months ago and its left hinges broke because he has not escaped or hit anywhere. I called the customer service and told them that when I opened the lid on normal use it is broken, which is quite shocking to me. They
-
Cancel a prior payment posted/treaties
R12.1.2Dear Oracle gurus,I have a requirement to cancel a cheque that has been treated in NOV-2013-2015. Payments have been processed and ancient periods are closed.Please notify.Thank you-Vincent