jeanx9
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Different Header ImagesHello,
I finally succeeded and want to share it with you.
I had no knowledge at all before in php and worked 4 hours by logic to create the solution.
What I did is to insert the following script in ‘my header.php’<?php if (is_page('8')) { ?> <div id="header_author"> <?php } ?> <?php if (is_page('11')) { ?> <div id="header"> <?php } ?> </div>
meaning that if the page id is 8 the ‘header_author’ will load and if the page id is 11 the ‘header’ will load.
Than I went to the ‘style.css’ and defined the ‘header_author’ and the ‘header’:
/* Header */ #header { background:url(img/header.jpg) no-repeat center; height:180px; width:900px; border:#ccc 3px double; margin:10px auto; } #header_author { background:url(https://getattraction.eu/goglobal2/wp-content/themes/paalam/img/author_header.jpg) no-repeat center; height:220px; width:900px; border:#ccc 3px double; margin:10px auto; }
so the header is in fact the picture (img/header.jpg)
the header_author is the picture at (https://getattraction.eu/goglobal2/wp-content/themes/paalam/img/author_header.jpg)
Hope this will help anyone in the future,
btw I am using the paalam theme.Forum: Fixing WordPress
In reply to: Different Header ImagesHello iridiax,
Thank you for the response.so lets say I want to change the header in page id 2.
I read the document in the link you sent me and I understood from it that the begining of the code should be<?php if (is_page('2')
I don’t know the command that should follow though to change the header, Could you help me with this one?
I am also enclosing my header.php code, should I input the code there?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="https://www.w3.org/1999/xhtml"> <head profile="https://gmpg.org/xfn/1"> <title><?php bloginfo('name'); ?><?php wp_title(); ?></title> <meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" /> <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats please --> <style type="text/css" media="screen"> @import url( <?php bloginfo('stylesheet_url'); ?> ); </style> <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" /> <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" /> <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <?php wp_get_archives('type=monthly&format=link'); ?> <?php //comments_popup_script(); // off by default ?> <?php wp_head(); ?> </head> <body> <div id="menu"> <ul> <li <?php if(is_home()){echo 'class="current_page_item"';}?>><a href="<?php bloginfo('siteurl'); ?>" title="?“?£ ?”?‘???×">?“?£ ?”?‘???×</a></li> <?php wp_list_pages('title_li=&depth=1');?> </ul> </div> <div id="header"> <h1><a href="<?php bloginfo('siteurl'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1> <h2><?php bloginfo('description');?></h2> </div>
Forum: Fixing WordPress
In reply to: Different Header Imagesanyone has an answer I must have it
Forum: Fixing WordPress
In reply to: wp-admin errorremoved it same error
Forum: Fixing WordPress
In reply to: wp-admin errordoesn’t work
theres nothing on line 35Forum: Fixing WordPress
In reply to: Edit This Text?thank you for the attention
here’s a link: