...

View Full Version : how can i remove image in header



ketanco
11-15-2011, 04:01 AM
hello
on my site roboticmagazine.com, the robobusiness banner to the right of my logo, i want to remove it. but when i went into theme header options i didnt see it there. and the theme support is saying they can not answer it. how can i remove this image? which file should i go to? i used google chrome inspect element but it doesnt tell me which file to go to. or when i view source i also can not see which file should i go to either. i just dont remember how i added this months ago...

Excavator
11-15-2011, 04:15 AM
Hello ketanco,
In your markup, that banner is coming from this bit I've highlighted in red -
<!-- LOGO -->

<!-- If display Image Logo is activated -->
<div id="sitename" style="margin-top:0px">
<a href="http://www.roboticmagazine.com">
<img src="http://www.roboticmagazine.com/wp-content/uploads/2011/04/logo_small3.png" alt="" />
</a>
</div>

<!-- If text is activated to be displayed as logo -->

<!-- RIGHT QUOTE -->
<div id="rightQuote">

<a href="http://www.robobusiness.com/?utm_source=roboticsmagazine&utm_medium=banner9&utm_campaign=tile"><img style="position:absolute;right:110px;" src="http://www.roboticmagazine.com/wp-content/uploads/2011/06/100x100.gif" alt="" /></a><!-- ADDED BY BORAY ERIS -->
<a href="http://www.neurotechnology.com/"> <img src="http://www.roboticmagazine.com/wp-content/uploads/2011/05/neurotech1.gif" alt="" />
</a> <p class="rightQuoteWording">
<a href="http://www.neurotechnology.com/"> <span class="quoteCaption"></span>
</a> </p>
</div>
<div class="clear"></div>

</div> <!-- // header -->

<div class="clear"></div>

<div id="navcats">

ketanco
11-15-2011, 04:22 AM
yes thanks but i know that. question is what file is this? i dont know which file to go to in order to remove this line of code. how can i see which file to go to when i view source or inspect element?

Excavator
11-15-2011, 04:34 AM
I can't tell from the rendered code on this end. Post your markup that shows the includes in your header, that should give us a clue.

ketanco
11-15-2011, 09:18 AM
what do you mean by "Post your markup that shows the includes in your header"? thanks

skill3d
11-15-2011, 03:47 PM
Alright, to completely remove it take out the red line.


<!-- RIGHT QUOTE -->
<div id="rightQuote">

<a href="http://www.robobusiness.com/?utm_source=roboticsmagazine&utm_medium=banner9&utm_campaign=tile"><img style="position:absolute;right:110px;" src="http://www.roboticmagazine.com/wp-content/uploads/2011/06/100x100.gif" alt="" /></a><!-- ADDED BY BORAY ERIS -->
<a href="http://www.neurotechnology.com/"> <img src="http://www.roboticmagazine.com/wp-content/uploads/2011/05/neurotech1.gif" alt="" />
</a> <p class="rightQuoteWording">
<a href="http://www.neurotechnology.com/"> <span class="quoteCaption"></span>
</a> </p>
</div>

The image should be located on your host at the following directory:
" wp-content/uploads/2011/06/100x100.gif "

ketanco
11-15-2011, 06:13 PM
Alright, to completely remove it take out the red line.


<!-- RIGHT QUOTE -->
<div id="rightQuote">

<a href="http://www.robobusiness.com/?utm_source=roboticsmagazine&utm_medium=banner9&utm_campaign=tile"><img style="position:absolute;right:110px;" src="http://www.roboticmagazine.com/wp-content/uploads/2011/06/100x100.gif" alt="" /></a><!-- ADDED BY BORAY ERIS -->
<a href="http://www.neurotechnology.com/"> <img src="http://www.roboticmagazine.com/wp-content/uploads/2011/05/neurotech1.gif" alt="" />
</a> <p class="rightQuoteWording">
<a href="http://www.neurotechnology.com/"> <span class="quoteCaption"></span>
</a> </p>
</div>

The image should be located on your host at the following directory:
" wp-content/uploads/2011/06/100x100.gif "
i totally understand you but i dont know where to find this line. i looked everywhere i thought of... header php and then css files, index files hoe php but couldnt find it

teedoff
11-15-2011, 06:28 PM
what do you mean by "Post your markup that shows the includes in your header"? thanks

That's why Excavator asked for your source code. The rendered code AFTER the browser has opened your page, will not show any server side code, including includes because the application server has already processed the server side code.

Whatever you open and edit your files in, copy and paste that code here. We need to see the code PRE-rendered.

ketanco
11-15-2011, 06:32 PM
ok got you now... i didnt understand what he was asking.. here is the header php file:


<?php global $npdv_options, $currentcat, $themeinfo; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title>
<?php if(is_home() ) { bloginfo('name'); ?> | <?php bloginfo('description'); } ?>
<?php if(is_single() || is_page() || is_archive() || is_tag() || is_category() ) { wp_title('',true); ?> | <?php bloginfo('name'); } ?>
<?php if(is_404()) { ?> <?php _e('404 Error! Page Not Found','WpAdvNewspaper'); ?> | <?php bloginfo('name'); } ?>
<?php if(is_search()) { ?><?php _e('Search results for:','WpAdvNewspaper'); ?> <?php echo wp_specialchars($s, 1); ?> | <?php bloginfo('name'); } ?>
</title>
<?php /* add favicon */ if ( $npdv_options["gab_favico"] <> "" ) { ?>
<link rel="shortcut icon" href="<?php echo $npdv_options["gab_favico"]; ?>" />
<?php } ?>
<style type="text/css" media="screen">@import url( <?php bloginfo('stylesheet_url'); ?> );</style>
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/styles/<?php echo $npdv_options["style"]; ?>.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/styles/custom.css" type="text/css" media="screen" />

<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php if ( $npdv_options["feedlink"] <> "" ) { echo $npdv_options["feedlink"]; } else { echo bloginfo('rss2_url'); } ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php if ( $npdv_options["feedlink"] <> "" ) { echo $npdv_options["feedlink"]; } else { echo 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'); if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>

<?php if($npdv_options['enCufon'] == 1) { ?>
<script type="text/javascript">
Cufon.replace('#leaveComment');
Cufon.replace('.widgetbgTitle');
Cufon.replace('.narrowSidebarTitle');
</script>
<?php } ?>
</head>

<body>
<?php /* Define id number of current category for category based advertisement */
if(is_category() || is_single()) {
$category = get_the_category();
$currentcat = $category[0]->cat_ID;
}
?>

<?php if($npdv_options['enable728'] == 1) { ?>
<div id="topad">
<?php
if(file_exists(TEMPLATEPATH . '/ads/sitewide_728x90/'.$currentcat.'.php') && (is_single() || is_category())) {
include_once(TEMPLATEPATH . '/ads/sitewide_728x90/'.$currentcat.'.php');
}
else {
include_once(TEMPLATEPATH . '/ads/sitewide_728x90.php');
}
?>
</div>
<?php } ?>

<div id="wrapper">

<div id="masthead">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Menu_Masthead') ) : ?>
<?php /* NAV MENU 1 */
if($npdv_options['ennav1'] == 1) {
wp_nav_menu( array('theme_location' => 'masthead', 'container' => false));
} else { ?>
<ul>
<li><a href="#"><?php _e('Stay Connected','WpAdvNewspaper'); ?></a>
<ul>
<li><a class="gab_rss" href="<?php if ( $npdv_options["feedlink"] <> "" ) { echo $npdv_options["feedlink"]; } else { echo bloginfo('rss2_url'); } ?>" rel="nofollow" title="<?php _e('Subscribe to latest posts in RSS','WpAdvNewspaper'); ?>"><?php _e('Latest Posts in RSS','WpAdvNewspaper'); ?></a>
<ul>
<?php
$categories = get_categories('hide_empty=1');
foreach ($categories as $cat)
{
echo '<li><a class="gab_rss" rel="nofollow" href="'.get_category_feed_link($cat->cat_ID, '').'">'. $cat->cat_name.'</a></li>';
}
?>
</ul>
</li>
<li><a class="gab_rss" href="<?php bloginfo('comments_rss2_url'); ?>" rel="nofollow" title="<?php _e('Subscribe to latest comments in RSS','WpAdvNewspaper'); ?>"><?php _e('Latest Comments in RSS','WpAdvNewspaper'); ?></a></li>
<?php if($npdv_options['enableMailSubscribe'] == 1) { ?><li><a class="gab_email" href="<?php echo $npdv_options["emailSubscribeLink"]; ?>" rel="nofollow" title="<?php _e('Subscribe to latest posts via email','WpAdvNewspaper'); ?>"><?php _e('Subscribe by e-mail','WpAdvNewspaper'); ?></a></li><?php } ?>
<?php if($npdv_options['enabletwitterUp'] == 1) { ?><li><a class="gab_twitter" href="http://www.twitter.com/<?php echo $npdv_options["twitterusername"]; ?>" rel="nofollow" title="<?php _e('follow on twitter','WpAdvNewspaper'); ?>"><?php _e('Follow us on Twitter','WpAdvNewspaper'); ?></a></li><?php } ?>
<?php if($npdv_options['enablefacebook'] == 1) { ?><li><a class="gab_facebook" href="<?php echo $npdv_options["linktofacebook"]; ?>" rel="nofollow" title="<?php _e('Connect on facebook','WpAdvNewspaper'); ?>"><?php _e('Connect on Facebook','WpAdvNewspaper'); ?></a></li><?php } ?>
</ul>
</li>
<li> / <script type="text/javascript">
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("<?php _e('Sunday','WpAdvNewspaper'); ?>","<?php _e('Monday','WpAdvNewspaper'); ?>","<?php _e('Tuesday','WpAdvNewspaper'); ?>","<?php _e('Wednesday','WpAdvNewspaper'); ?>","<?php _e('Thursday','WpAdvNewspaper'); ?>","<?php _e('Friday','WpAdvNewspaper'); ?>","<?php _e('Saturday','WpAdvNewspaper'); ?>")
var montharray=new Array("<?php _e('January','WpAdvNewspaper'); ?>","<?php _e('February','WpAdvNewspaper'); ?>","<?php _e('March','WpAdvNewspaper'); ?>","<?php _e('April','WpAdvNewspaper'); ?>","<?php _e('May','WpAdvNewspaper'); ?>","<?php _e('June','WpAdvNewspaper'); ?>","<?php _e('July','WpAdvNewspaper'); ?>","<?php _e('August','WpAdvNewspaper'); ?>","<?php _e('September','WpAdvNewspaper'); ?>","<?php _e('October','WpAdvNewspaper'); ?>","<?php _e('November','WpAdvNewspaper'); ?>","<?php _e('December','WpAdvNewspaper'); ?>")
document.write(""+montharray[month]+" "+daym+", "+year+"")
</script>
</li>
</ul>
<?php } ?>
<?php endif; ?>
<div id="search"><?php include (TEMPLATEPATH . '/searchform.php'); ?></div>
<div class="clear"></div>
</div><!-- enf od Masthead -->
<!-- #Header -->
<?php if ($npdv_options['switchheader'] == 2) { /* If display a single image for header is selected */ ?>
<a href="<?php bloginfo('url'); ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>"><img src="<?php echo $npdv_options["headerimage"]; ?>" style="max-width:970px" alt="<?php bloginfo('name'); ?>" /></a>
<?php } elseif($npdv_options['switchheader'] == 1) { /* If header with quotes option is selected */
include (TEMPLATEPATH . '/headerWithQ.php');
} else { /* If header with Advertisement option is selected */
include (TEMPLATEPATH . '/headerWithAd.php');
} ?>
<!-- // header -->

<div class="clear"></div>

<div id="navcats">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Menu_Categories') ) : ?>
<?php /* NAV MENU 2 */
if($npdv_options['ennav2'] == 1) {
wp_nav_menu( array('theme_location' => 'Header_Category_Nav', 'container' => false));
} else { ?>
<ul>
<li<?php if(is_home() ) { ?> class="current-cat"<?php } ?>><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('description'); ?>"><?php _e('Home','WpAdvNewspaper'); ?></a></li>
<?php wp_list_categories('orderby='.$npdv_options["orderBy"].'&order='.$npdv_options["order"].'&title_li=&exclude='.$npdv_options["excludeCategories"]); ?>
</ul>
<?php } ?>
<?php endif; ?>
<div class="clear"></div>
</div>

<div id="navpages">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Menu_Pages') ) : ?>
<?php /* NAV MENU 3 */
if($npdv_options['ennav3'] == 1) {
wp_nav_menu( array('theme_location' => 'Header_Page_Nav', 'container' => false));
} else { ?>
<ul>
<?php wp_list_pages('sort_column=menu_order&title_li=&exclude='.$npdv_options["excludePageNav"]); ?>
</ul>
<?php } ?>
<?php endif; ?>
<div class="clear"></div>
</div>

<div class="clear"></div>

Excavator
11-15-2011, 11:45 PM
There should be some support for editing this php whereever you bought it. At the very least a pretty comprehensive help file and, probably, a forum.

...Just checked your site and I see you've removed the ad :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum