CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 9th, 2013, 01:41 PM
artiisan artiisan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2013
Posts: 8 artiisan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 39 m
Reputation Power: 0
Angry New Member - I just need to figure out where to insert this line of code

I'm working on a site for a client and I need to add in a php code left aligned in the same div tag as the menu . If anyone can help me with this I would be very grateful. If there is anything I need to post please feel free to let me know. Thanks

Reply With Quote
  #2  
Old January 9th, 2013, 01:52 PM
richpri's Avatar
richpri richpri is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Location: Chicago
Posts: 49 richpri User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 32 m 9 sec
Reputation Power: 1
Facebook
An example of your code would help.

Are you looking for something like this?

Code:
        <p id="lognote"><?php echo "$welcomename: $headermessage"; ?>
          <span style="font-size: 70%">
            Click <a href="index.html">here</a> 
            if you are not <?php echo "$welcomename"; ?>.
          </span>
        </p>

Reply With Quote
  #3  
Old January 9th, 2013, 01:56 PM
artiisan artiisan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2013
Posts: 8 artiisan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 39 m
Reputation Power: 0
Code

Quote:
Originally Posted by richpri
An example of your code would help.

Are you looking for something like this?

Code:
        <p id="lognote"><?php echo "$welcomename: $headermessage"; ?>
          <span style="font-size: 70%">
            Click <a href="index.html">here</a> 
            if you are not <?php echo "$welcomename"; ?>.
          </span>
        </p>


session_start();
$pp_theme_version = THEMEVERSION;

?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">

<title><?php wp_title('&lsaquo;', true, 'right'); ?><?php bloginfo('name'); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />

<?php
/**
* Get favicon URL
**/

$pp_favicon = get_option('pp_favicon');

if(!empty($pp_favicon))
{
?>
<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/data/<?php echo $pp_favicon; ?>" />
<?php
}
?>

<!-- Template stylesheet -->
<?php
wp_enqueue_style("screen_css", get_stylesheet_directory_uri()."/css/screen.css", false, $pp_theme_version, "all");
wp_enqueue_style("grid_css", get_stylesheet_directory_uri()."/css/grid.css", false, $pp_theme_version, "all");
wp_enqueue_style("fancybox_css", get_stylesheet_directory_uri()."/js/fancybox/jquery.fancybox-1.3.0.css", false, $pp_theme_version, "all");
wp_enqueue_style("videojs_css", get_stylesheet_directory_uri()."/js/video-js.css", false, $pp_theme_version, "all");
wp_enqueue_style("vim_css", get_stylesheet_directory_uri()."/js/skins/vim.css", false, $pp_theme_version, "all");

if(isset($_SESSION['pp_skin']))
{
$pp_skin = $_SESSION['pp_skin'];
}
else
{
$pp_skin = get_option('pp_skin');
}

if($pp_skin == 'dark')
{
wp_enqueue_style("dark.css", get_stylesheet_directory_uri()."/css/dark.css", false, $pp_theme_version, "all");
}
?>

<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" charset="utf-8" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script>

<?php
wp_enqueue_script("jquery", get_stylesheet_directory_uri()."/js/jquery.js", false, $pp_theme_version);
wp_enqueue_script("jquery.ui_js", get_stylesheet_directory_uri()."/js/jquery.ui.js", false, $pp_theme_version);
wp_enqueue_script("fancybox_js", get_stylesheet_directory_uri()."/js/fancybox/jquery.fancybox-1.3.0.js", false, $pp_theme_version);
wp_enqueue_script("jQuery_easing", get_stylesheet_directory_uri()."/js/jquery.easing.js", false, $pp_theme_version);
wp_enqueue_script("jQuery_nivo", get_stylesheet_directory_uri()."/js/jquery.nivoslider.js", false, $pp_theme_version);
wp_enqueue_script("jquery.touchwipe.1.1.1", get_stylesheet_directory_uri()."/js/jquery.touchwipe.1.1.1.js", false, $pp_theme_version);
wp_enqueue_script("jquery.ppflip.js", get_stylesheet_directory_uri()."/js/jquery.ppflip.js", false, $pp_theme_version);

if(is_home())
{
wp_enqueue_script("jquery.RotateImageMenu.js", get_stylesheet_directory_uri()."/js/jquery.RotateImageMenu.js", false, $pp_theme_version);
wp_enqueue_script("jquery.transform-0.9.3.min_.js", get_stylesheet_directory_uri()."/js/jquery.transform-0.9.3.min_.js", false, $pp_theme_version);
}

wp_enqueue_script("jquery.tubular.js", get_stylesheet_directory_uri()."/js/jquery.tubular.js", false, $pp_theme_version);
wp_enqueue_script("jQuery_gmap", get_stylesheet_directory_uri()."/js/gmap.js", false, $pp_theme_version);
wp_enqueue_script("jQuery_validate", get_stylesheet_directory_uri()."/js/jquery.validate.js", false, $pp_theme_version);
wp_enqueue_script("hint.js", get_stylesheet_directory_uri()."/js/hint.js", false, $pp_theme_version);
wp_enqueue_script("browser_js", get_stylesheet_directory_uri()."/js/browser.js", false, $pp_theme_version);
wp_enqueue_script("video_js", get_stylesheet_directory_uri()."/js/video.js", false, $pp_theme_version);
wp_enqueue_script("jquery.jplayer.min.js", get_stylesheet_directory_uri()."/js/jquery.jplayer.min.js", false, $pp_theme_version);
wp_enqueue_script("custom_js", get_stylesheet_directory_uri()."/js/custom.js", false, $pp_theme_version);

if(isset($_SESSION['pp_font_family']))
{
$pp_font = $_SESSION['pp_font_family'];
}
else
{
$pp_font = get_option('pp_font_family');
}
$pp_font = urlencode($pp_font);

if(!empty($pp_font))
{
wp_enqueue_style('google_fonts', "http://fonts.googleapis.com/css?family=".$pp_font."&subset=latin,cyrillic", false, "", "all");
}
else
{
wp_enqueue_style('google_fonts', "http://fonts.googleapis.com/css?", false, "", "all");
}
?>

<?php
/* Always have wp_head() just before the closing </head>
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to <head> such
* as styles, scripts, and meta tags.
*/
wp_head();
?>

<!--[if lte IE 8]>
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/css/ie.css?v=<?php echo $pp_theme_version; ?>.css" type="text/css" media="all"/>
<![endif]-->

<!--[if lt IE 8]>
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/css/ie7.css?v=<?php echo $pp_theme_version; ?>" type="text/css" media="all"/>
<![endif]-->

<?php
$pp_enable_right_click = get_option('pp_enable_right_click');
$pp_right_click_text = get_option('pp_right_click_text');

if(!empty($pp_enable_right_click))
{
?>
<script type="text/javascript" language="javascript">
$j(function() {
$j(this).bind("contextmenu", function(e) {
<?php
if(!empty($pp_right_click_text))
{
?>
alert('<?php echo $pp_right_click_text; ?>');
<?php
}
?>
e.preventDefault();
});
});
</script>
<?php
}
?>

<style type="text/css">

<?php
$pp_page_font_size = get_option('pp_page_font_size');

if(!empty($pp_page_font_size))
{
?>
body, #page_content_wrapper .sidebar .content .posts.blog { font-size:<?php echo $pp_page_font_size; ?>px; }
<?php
}

?>

<?php
$pp_menu_font_size = get_option('pp_menu_font_size');

if(!empty($pp_menu_font_size))
{
?>
.nav li a { font-size:<?php echo $pp_menu_font_size; ?>px; }
<?php
}

?>

<?php
$pp_page_header_size = get_option('pp_page_header_size');

if(!empty($pp_page_header_size))
{
?>
.page_caption h1 { font-size:<?php echo $pp_page_header_size; ?>px; }
<?php
}

?>

<?php
$pp_h1_size = get_option('pp_h1_size');

if(!empty($pp_h1_size))
{
?>
h1 { font-size:<?php echo $pp_h1_size; ?>px; }
<?php
}

?>

<?php
$pp_h2_size = get_option('pp_h2_size');

if(!empty($pp_h2_size))
{
?>
h2 { font-size:<?php echo $pp_h2_size; ?>px; }
<?php
}

?>

<?php
$pp_h3_size = get_option('pp_h3_size');

if(!empty($pp_h3_size))
{
?>
h3 { font-size:<?php echo $pp_h3_size; ?>px; }
<?php
}

?>

<?php
$pp_h4_size = get_option('pp_h4_size');

if(!empty($pp_h4_size))
{
?>
h4 { font-size:<?php echo $pp_h4_size; ?>px; }
<?php
}

?>

<?php
$pp_h5_size = get_option('pp_h5_size');

if(!empty($pp_h5_size))
{
?>
h5 { font-size:<?php echo $pp_h5_size; ?>px; }
<?php
}

?>

<?php
$pp_h6_size = get_option('pp_h6_size');

if(!empty($pp_h6_size))
{
?>
h6 { font-size:<?php echo $pp_h6_size; ?>px; }
<?php
}

?>

<?php
$pp_flow_scroll_bar = get_option('pp_flow_scroll_bar');

if(empty($pp_flow_scroll_bar))
{
?>
#imageFlow .scrollbar { display:none; }
<?php
}

if(isset($_SESSION['pp_font_family']))
{
$pp_font_family = $_SESSION['pp_font_family'];
}
else
{
$pp_font_family = get_option('pp_font_family');
}

if(!empty($pp_font_family))
{
?>
h1, h2, h3, h4, h5, h6, .nav, .subnav, #footer { font-family: '<?php echo $pp_font_family; ?>'; }
<?php
}
?>
@media only screen and (min-width: 768px) and (max-width: 960px) {
.page_caption h1 { font-size: 90px; }
#bg { margin-top: 0; }
}
@media only screen and (min-width: 480px) and (max-width: 767px) {
.page_caption h1 { font-size: 65px; }
#bg { margin-top: 0; }
}
@media only screen and (max-width: 767px) {
.page_caption h1 { font-size: 50px; }
#bg { margin-top: 0; }
}
</style>

</head>

<?php
if(isset($_SESSION['pp_portfolio_style']))
{
$pp_portfolio_style_class = 'pp_'.$_SESSION['pp_portfolio_style'];
}
else
{
$pp_portfolio_style_class = 'pp_'.get_option('pp_portfolio_style');
}
?>

<body <?php body_class(); ?> id="<?php echo $pp_portfolio_style_class; ?>">

<?php
if(isset($_SESSION['pp_skin']))
{
$pp_skin = $_SESSION['pp_skin'];
}
else
{
$pp_skin = get_option('pp_skin');
}

if($pp_skin == 'dark')
{
?>
<input type="hidden" id="skin_color" name="skin_color" value="000000"/>
<?php
}
else
{
?>
<input type="hidden" id="skin_color" name="skin_color" value="ffffff"/>
<?php
}
?>

<?php
$pp_auto_start = get_option('pp_auto_start');
?>
<input type="hidden" id="pp_auto_start" name="pp_auto_start" value="<?php echo $pp_auto_start; ?>"/>

<?php
$pp_enable_reflection = get_option('pp_enable_reflection');
?>
<input type="hidden" id="pp_enable_reflection" name="pp_enable_reflection" value="<?php echo $pp_enable_reflection; ?>"/>

<!-- Begin template wrapper -->

<div id="wrapper">

<div id="top_bar" <?php if(isset($_GET['mode']) || $_GET['mode']=='f'){ echo 'style="position:fixed;width:100%;display:none;padding:0 0 30px 0"'; } ?>>
<!-- Begin logo -->

<?php
//get custom logo
$pp_logo = get_option('pp_logo');

if(empty($pp_logo))
{
if(isset($_SESSION['pp_skin']))
{
$pp_skin = $_SESSION['pp_skin'];
}
else
{
$pp_skin = get_option('pp_skin');
}

if($pp_skin == 'dark')
{
$pp_logo = get_stylesheet_directory_uri().'/images/logo_white.png';
}
else
{
$pp_logo = get_stylesheet_directory_uri().'/images/logo_grey.png';
}
}
else
{
$pp_logo = get_stylesheet_directory_uri().'/data/'.$pp_logo;
}

?>

<a id="custom_logo" class="logo_wrapper" href="<?php echo home_url(); ?>" <?php if(isset($_GET['mode']) || $_GET['mode']=='f'){ echo 'style="margin-left:20px"'; } ?>><img src="<?php echo $pp_logo?>" alt=""/></a>


<!-- End logo -->

<!-- Begin main nav -->

<div id="menu_border_wrapper">

<?php
//Get page nav
wp_nav_menu(
array(
'menu_id' => 'main_menu',
'menu_class' => 'nav',
'theme_location' => 'primary-menu',
)
);
?>

</div>

<!-- End main nav -->



---------------------------------------------------------
This is the code I need to insert
<?php if ( function_exists('cn_social_icon') ) echo cn_social_icon(); ?>

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > New Member - I just need to figure out where to insert this line of code

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap