NameSilo

Script Question

Spacemail by SpaceshipSpacemail by Spaceship
Watch

DnEbook

DataGlasses.ComTop Member
Impact
5,747
Hey guys and girls

I have the site .... Vampire Ebook and it is using a theme (wordpress) that has some built in ad spots but the thing is i do not wish to use them but each time i delete that part of the script i lose the whole sidebar

Below is what i have been deleting, at least i know enough to copy and paste the script to return it to normal if i stuff up , but any ideas/advice would be appreciated ...many thanks in advance !

</div>

<div class="sidebar-box-blank">
<div class="sidebar-ads">
<img src="<?php bloginfo('template_directory'); ?>/images/banner_125x125.jpg" alt="Ads" width="125" height="125" />
</div>
</div>

<div class="sidebar-box">
<h3>Categories</h3>
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Your site seems offline, but I would assume that you only need to remove this part to keep the sidebar:

PHP:
<div class="sidebar-box-blank">
<div class="sidebar-ads">
<img src="<?php bloginfo('template_directory'); ?>/images/banner_125x125.jpg" alt="Ads" width="125" height="125" />
</div>
</div>
 
2
•••
Or go to widgets, and only have what you want in the sidebars.

Or look at the theme sidebar page (like sidebar.php).
Make changes there.
 
2
•••
Your site seems offline, but I would assume that you only need to remove this part to keep the sidebar:

PHP:
<div class="sidebar-box-blank">
<div class="sidebar-ads">
<img src="<?php bloginfo('template_directory'); ?>/images/banner_125x125.jpg" alt="Ads" width="125" height="125" />
</div>
</div>

Took out 'template_directory'......... all that did was leave a blank box so that's not the answer

---------- Post added at 09:44 AM ---------- Previous post was at 09:43 AM ----------

Or go to widgets, and only have what you want in the sidebars.

Or look at the theme sidebar page (like sidebar.php).
Make changes there.

There is no option to remove advertising in the widgets section, i am in the sidebar part of the script ?

Anyway both repped for your time
 
0
•••
Remove the entire image tag:

<img src="<?php bloginfo('template_directory'); ?>/images/banner_125x125.jpg" alt="Ads" width="125" height="125" />

The alt text "ads" is the alternative text that appears if WP can't find or can't show the image.
 
0
•••
That is the part i put in bold and stated i lose the whole sidebar when i do that delete, thanks but that is not the answer
 
0
•••
:red:
That is the part i put in bold and stated i lose the whole sidebar when i do that delete, thanks but that is not the answer

If you remove just the image tag you lose the entire sidebar?

What if you remove,
<div class="sidebar-ads">

<img src="<?php bloginfo('template_directory'); ?>/images/banner_125x125.jpg" alt="Ads" width="125" height="125" />
</div>
 
1
•••
That is the part i put in bold and stated i lose the whole sidebar when i do that delete, thanks but that is not the answer

Try replacing it with some placeholder text and see what happens.
 
0
•••
Placeholder text ..... i can guess what the means but not sure how to go about it ?

just fill the line with anything ?
 
0
•••
Placeholder text ..... i can guess what the means but not sure how to go about it ?

just fill the line with anything ?

yes any old letters... some parts of page are not visible if they have no content, nothing to lose by trying.
 
0
•••
I wonder if they should be in brackets or anything ?
I will try thanks ....repped

---------- Post added at 01:10 PM ---------- Previous post was at 12:56 PM ----------

I did this but no real result:
The bold is what i took out but it leaves a little box that really doesn't fix the problem ? and it mover the second sidebar underneath the first one ??


<div class="sidebar-ads">
<img src="<?php bloginfo('template_directory'); ?

>/images/banner_125x125.jpg" alt="Ads" width="125" height="125"
/>


<div class="">
<img src="<?php bloginfo(); ?>/llllllllllllllllllllll
llllllllllllllllllll/>
 
Last edited:
0
•••
Vampire Ebook [/URL]and it is using a theme (wordpress) that has some built in ad spots but the thing is i do not wish to use them but each time i delete that part of the script i lose the whole sidebar

Most paid themes include support.

Is there anything else IN the sidebar? If not then the CSS is likely just collapsing that area. Try adding a fixed width to it (or adding text like suggested).

Your best bet if you want someone to help is to post the before and after HTML (and CSS) from your site so that the rendering output cause/difference can be found. Then you can tie it back to the source php.

You cannot diagnose something you can't see.
 
Last edited:
1
•••
Ok thanks for that .....tried to rep you ...apparantly too found ? WHo would have guessed but seems like a good sugestion (entire script) ..... this is not a paid theme

---------- Post added at 04:07 PM ---------- Previous post was at 03:54 PM ----------

Below is the script without my changes, i have bolded the area of concern


<!-- Sidebar -->
<div id="sidebar">

<!-- Sidebar Left -->
<div id="sidebar-left">

<div class="sidebar-box">
<h3>Pages</h3>
<ul>
<?php wp_list_pages('title_li='); ?>
</ul>
</div>

<div class="sidebar-box-blank">
<div class="sidebar-ads">
<img src="<?php bloginfo('template_directory'); ?>/images/banner_125x125.jpg" alt="Ads" width="125" height="125" />

</div>
</div>

<div class="sidebar-box">
<h3>Categories</h3>
<ul>
<?php wp_list_categories('title_li='); ?>
</ul>
</div>

<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?>

<?php endif; ?>

</div>
<!-- /Sidebar Left -->

<!-- Sidebar Right -->
<div id="sidebar-right">

<div class="sidebar-box">
<h3>Archives</h3>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</div>

<div class="sidebar-box-blank">
<div class="sidebar-ads">
<img src="<?php bloginfo('template_directory'); ?>/images/banner_125x125.jpg" alt="Ads" width="125" height="125" />

</div>
</div>

<div class="sidebar-box">
<h3>Blog Roll</h3>
<ul>
<?php wp_list_bookmarks('categorize=0&title_li='); ?>
</ul>
</div>

<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?>

<?php endif; ?>

</div>
<!-- /Sidebar Right -->

</div>
<!-- Sidebar -->
 
0
•••
Have you considered just replacing that advertising placeholder image with one of your own?

Here is some relevant stuff from the site's CSS

#sidebar .sidebar-box-blank {

width: 195px;

margin-bottom: 25px;

}

/* Sidebar - Ads */



#sidebar .sidebar-ads {

width: 195px;

text-align: center;

}
 
0
•••
i did try to insert google ads (125x125) but couldn't succeed after many attempts
 
Last edited:
0
•••
i did try to insert google ads (125x125) but couldn't succedd after many attempts

Hi where were you inserting them?

The placeholder image



banner_125x125.jpg


is located here:

http://vampirehire.com/wp-content/themes/stormy-night-10/images/banner_125x125.jpg

Try just going there and renaming that image to something else, then give your own jpg image the name of the original one and see what happens. Or is that what you did already?


Did the theme come with instructions? It is possible there is some logic we cannot see.
 
1
•••
I did try to insert google ads in this part of the script and couple of times i came close but the words 'ads' remained and when i deleted it i lost the complete sidebar left and right, thanks perhaps i wil have another go tomorrow, there is no reference or options regarding ad blocks

<div class="sidebar-ads">
<img src="<?php bloginfo('template_directory'); ?>/images/banner_125x125.jpg" alt="Ads" width="125" height="125" />
 
0
•••
hi,

i'd suggest you try to delete the following strings exactly as bolded (find and delete these two identical blocks of code in your snippet):

<div class="sidebar-box-blank">
<div class="sidebar-ads">
<img src="<?php bloginfo('template_directory'); ?>/images/banner_125x125.jpg" alt="Ads" width="125" height="125" />
</div>
</div>
<-- do not miss these two </div> tags


this should completely remove the box between Archives block and Blogroll box, and beetween Pages and Categories


do not try to keep <img src="<?php bloginfo(''); ?>/images/banner_125x125.jpg" alt="Ads" width="125" height="125" /> (or anything with bloginfo) as this will lead to php error - bloginfo() function without a parameter will default to bloginfo('name') so it'll look like <img src="Your Blog Name/images/banner_125x125.jpg" alt="Ads" width="125" height="125" /> after php parser and theres apparently no such a dir as "Your Blog Name" in your WP root directory.

if you want to replace default banner image with your own image replace the whole <img ... /> thing with the following:

<img src="path_to_your_images_dir/your_image_filename.your_image_extension" alt="Whatever_alt_text_you_want" width="your_image_width" height="your_image_height" />


*
 
Last edited:
2
•••
Yes by removing the below i have been able to fix the probem ....yipppeeee

Mahy thanks , i guess the </div> was throwing everything out of wack although i must admit 'sidebar-box-blank' was never considered ......many thanks

repped !!!!

<div class="sidebar-box-blank">
</div>
</div>
 
0
•••
Thank you so much for helping guys! :)
 
0
•••
Unstoppable Domains
Domain Recover
DomainEasy โ€” Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back