StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-06-2012, 02:40 AM
kashem kashem is offline
Registered User
Genesis Member
 
Join Date: Sep 2010
Posts: 10
Default Adding PHP Code Before HTML

Hi

I need to add following code before HTML .

<?php
$pathToDLG = "../dlg/";
$dlgMemberGroup = "2,2";
include ($pathToDLG."members/dlgmembers.php");
?>
<html>
.....
.......

I tried with Genesis_Pre hook to print some test code like this

add_action ('genesis_pre','test_code');

function test_code()
{

echo 'testtttttttttttttttt';
}

but it is not displaying ....when I check the html source code.

would you please guide what I will need to do to render following code before html

<?php
$pathToDLG = "../dlg/";
$dlgMemberGroup = "2,2";
include ($pathToDLG."members/dlgmembers.php");
?>
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Widgets- Adding HTML code to the "title" area of Text widget rebyjay1 General Discussion 2 09-04-2009 07:58 AM


All times are GMT -5. The time now is 10:22 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.