| | |||||
| ||||||||
| Website Development Development concepts, scripts, sponsors and affiliate programs. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Expert Join Date: Aug 2007 Location: Rod.Tv
Posts: 7,369
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Script Question 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 ????: NamePros.com http://www.namepros.com/website-development/743466-script-question.html 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>
__________________ Start your business with.... AllDogWalking.Com Business Information School Study Guide Blonde |
| |
| | #2 (permalink) |
| Senior Member Join Date: Sep 2006
Posts: 1,053
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Your site seems offline, but I would assume that you only need to remove this part to keep the sidebar: PHP Code: |
| |
| Post Thanks / Like |
Janine thanked for this post
|
| |
| | THREAD STARTER #4 (permalink) | ||||||||
| NamePros Expert Join Date: Aug 2007 Location: Rod.Tv
Posts: 7,369
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
---------- Post added at 09:44 AM ---------- Previous post was at 09:43 AM ----------
Anyway both repped for your time
__________________ Start your business with.... AllDogWalking.Com Business Information School Study Guide Blonde | ||||||||
| |
| | #5 (permalink) |
| NamePros Regular Join Date: Mar 2009
Posts: 546
![]() ![]() ![]() ![]() ![]() ![]() | 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.
__________________ This is political opinionpoll.me | free recipes for drinks on your phone and tapforex.com for currency | energy meters digital archery | walletdeal | shopfor3d.com | casino cloud | mobilehealthcarestore | 3dfashionistas | e-bike.tv | carwallets.com | ebookreader |
| |
| | THREAD STARTER #6 (permalink) |
| NamePros Expert Join Date: Aug 2007 Location: Rod.Tv
Posts: 7,369
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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
__________________ Start your business with.... AllDogWalking.Com Business Information School Study Guide Blonde |
| |
| | #7 (permalink) | ||||
| Senior Member Join Date: Oct 2005
Posts: 1,089
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | ![]()
What if you remove, <div class="sidebar-ads"> <img src="<?php bloginfo('template_directory'); ?>/images/banner_125x125.jpg" alt="Ads" width="125" height="125" /> ????: NamePros.com http://www.namepros.com/showthread.php?t=743466 </div>
__________________ Quit developing - Jan 2012 | ||||
| |
| Post Thanks / Like |
Janine thanked for this post
|
| |
| | #8 (permalink) |
| NamePros Regular Join Date: Mar 2009
Posts: 546
![]() ![]() ![]() ![]() ![]() ![]() | Try replacing it with some placeholder text and see what happens.
__________________ This is political opinionpoll.me | free recipes for drinks on your phone and tapforex.com for currency | energy meters digital archery | walletdeal | shopfor3d.com | casino cloud | mobilehealthcarestore | 3dfashionistas | e-bike.tv | carwallets.com | ebookreader |
| |
| | THREAD STARTER #9 (permalink) |
| NamePros Expert Join Date: Aug 2007 Location: Rod.Tv
Posts: 7,369
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Placeholder text ..... i can guess what the means but not sure how to go about it ? just fill the line with anything ?
__________________ Start your business with.... AllDogWalking.Com Business Information School Study Guide Blonde |
| |
| | #10 (permalink) | ||||
| NamePros Regular Join Date: Mar 2009
Posts: 546
![]() ![]() ![]() ![]() ![]() ![]() |
__________________ This is political opinionpoll.me | free recipes for drinks on your phone and tapforex.com for currency | energy meters digital archery | walletdeal | shopfor3d.com | casino cloud | mobilehealthcarestore | 3dfashionistas | e-bike.tv | carwallets.com | ebookreader | ||||
| |
| | THREAD STARTER #11 (permalink) |
| NamePros Expert Join Date: Aug 2007 Location: Rod.Tv
Posts: 7,369
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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 ?? ????: NamePros.com http://www.namepros.com/showthread.php?t=743466 <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/>
__________________ Start your business with.... AllDogWalking.Com Business Information School Study Guide Blonde
Last edited by evirtual1; 01-16-2012 at 06:14 PM.
|
| |
| | #12 (permalink) |
| Senior Member Join Date: May 2009 Location: internet@ctivist.com
Posts: 4,799
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | ????: NamePros.com http://www.namepros.com/showthread.php?t=743466 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.
__________________ A Member of: IdeationTeam.com HowToBeADomainer.com - a Domaining How To AuthorEditor.com
Last edited by defaultuser; 01-16-2012 at 09:05 PM.
|
| |
| Post Thanks / Like |
Janine thanked for this post
|
| |
| | THREAD STARTER #13 (permalink) |
| NamePros Expert Join Date: Aug 2007 Location: Rod.Tv
Posts: 7,369
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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> ????: NamePros.com http://www.namepros.com/showthread.php?t=743466 <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 -->
__________________ Start your business with.... AllDogWalking.Com Business Information School Study Guide Blonde |
| |
| | #14 (permalink) |
| NamePros Regular Join Date: Mar 2009
Posts: 546
![]() ![]() ![]() ![]() ![]() ![]() | 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; }
__________________ This is political opinionpoll.me | free recipes for drinks on your phone and tapforex.com for currency | energy meters digital archery | walletdeal | shopfor3d.com | casino cloud | mobilehealthcarestore | 3dfashionistas | e-bike.tv | carwallets.com | ebookreader |
| |
| | THREAD STARTER #15 (permalink) |
| NamePros Expert Join Date: Aug 2007 Location: Rod.Tv
Posts: 7,369
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | i did try to insert google ads (125x125) but couldn't succeed after many attempts
__________________ Start your business with.... AllDogWalking.Com Business Information School Study Guide Blonde
Last edited by evirtual1; 01-18-2012 at 12:20 AM.
|
| |
| | #16 (permalink) | ||||
| NamePros Regular Join Date: Mar 2009
Posts: 546
![]() ![]() ![]() ![]() ![]() ![]() |
The placeholder image ![]() is located here: http://vampirehire.com/wp-content/th...er_125x125.jpg ????: NamePros.com http://www.namepros.com/showthread.php?t=743466 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.
__________________ This is political opinionpoll.me | free recipes for drinks on your phone and tapforex.com for currency | energy meters digital archery | walletdeal | shopfor3d.com | casino cloud | mobilehealthcarestore | 3dfashionistas | e-bike.tv | carwallets.com | ebookreader | ||||
| |
| Post Thanks / Like |
Janine thanked for this post
|
| |
| | THREAD STARTER #17 (permalink) |
| NamePros Expert Join Date: Aug 2007 Location: Rod.Tv
Posts: 7,369
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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" />
__________________ Start your business with.... AllDogWalking.Com Business Information School Study Guide Blonde |
| |
| | #18 (permalink) |
| NamePros Regular Join Date: Jun 2011 Location: Moscow
Posts: 626
![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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. ????: NamePros.com http://www.namepros.com/showthread.php?t=743466 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 by 4pm; 01-18-2012 at 07:42 AM.
|
| |
| Post Thanks / Like |
Janine thanked for this post
|
| |
| | THREAD STARTER #19 (permalink) |
| NamePros Expert Join Date: Aug 2007 Location: Rod.Tv
Posts: 7,369
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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>
__________________ Start your business with.... AllDogWalking.Com Business Information School Study Guide Blonde |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Scripteen - The Best PHP Scripts on the Web | cyberoptik | Scripts For Sale | 57 | 12-17-2011 11:16 PM |
| Awesome Classifieds N More PHP Script [HUGE NP Member Discount] | SmokinBull | Scripts For Sale | 4 | 10-30-2011 09:24 AM |