Hi, I try to keep this short. I have html code in the text area of a text widget. Its code for a table that is working fine but it is getting to large to maintain in the text box. Modifying the file outside of the box and then cutting and pasting into it has worked fine, but it would be nice if I could just use code to call the file “within” the text box widget itself. I have placed the table code in a file called: footercode.html, and I have used the following code in the text widget box:
<?php $file=fopen("footercode.html","r"); ?>
and placed the footercode.html file in the theme directory, but of course it doesn’t work, else I wouldn’t be here. If someone could let me know what I am doing wrong i’d appreciate it. Thanks.
- The topic ‘How do I call a file from the text widget?’ is closed to new replies.