go41

Added Slider trouble deleting code for Headline and Feature

von Joern am 20. Nov. 2011 | Keine Kommentare

Hi again,
I installed the slider using your instructions from about a year ago and it is working (THANK YOU!) but it appears my main index page is slightly different than the one you used to delete the code to remove the headline and features that was previously on the main page. So right now I have both the slider and the "headline," "features" operating. I have been trying to delete the correct code to remove the "headline" and "feature" from the main index php to no avail.
Following is my main index code. Can you tell me what I need to delete from it please?

Again, many, many thanks. Best always, Marinka
marinkapeschmann.com
main index php[b][u]
<?php get_header(); ?>
<?php if(!is_paged()) { ?>

<?php if(file_exists(TEMPLATEPATH . ‚/myslider.php‘)) {

include (TEMPLATEPATH . ‚/myslider.php‘); } ?>
<div id="top" class="clearfloat">
<div id="headline">

<img src="<?php bloginfo(‚template_url‘); ?>/images/headline.png" width="75" height="21" alt="" />
<?php query_posts("showposts=1&category_name=Headline"); ?>

<?php while (have_posts()) : the_post(); $values = get_post_custom_values("Image");

?>

<div class="title">

" rel="bookmark"><?php the_title(); ?>

</div>

<div class="meta">

[ <?php the_time(‚j M Y‘) ?> | <?php comments_popup_link(‚No Comment‘, ‚One Comment‘, ‚% Comments‘);?> <?php if(function_exists(‚the_views‘)) { ?>| <?php the_views(); } ?>]

</div>

<?php if (has_post_thumbnail()) {

?>

" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">

<?php the_post_thumbnail(‚headline‘,array(‚class’=>’headline-thumb-wrapper‘, ‚title’=>$title)); ?>

<?php

} else

if (isset($values[0])){

?>

" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">

<img src="<?php echo bloginfo(‚template_url‘); ?>/scripts/timthumb.php?src=/<?php

echo urlencode($values[0]); ?>&w=300&h=275&zc=1&q=100" alt="<?php the_title(); ?>" class="left" width="300" height="275" />

<?php

} else {

?>

" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">

<img src="<?php echo bloginfo(‚template_url‘); ?>/scripts/timthumb.php?src=/images/no-image.png&w=300&h=275&zc=1&q=100" alt="<?php the_title(); ?>" class="left" width="300" height="275" />

<?php } ?>

<?php the_excerpt(); ?>

" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Read the full story »

<?php endwhile; ?>

</div>

<div id="featured">

<img src="<?php bloginfo(‚template_url‘); ?>/images/featured.png" width="72" height="17" alt="" />
<?php query_posts("showposts=4&category_name=Featured"); $i = 1; ?>
<?php while (have_posts()) : the_post();

$values = get_post_custom_values("Image");

?>
<div class="clearfloat">
<?php if (has_post_thumbnail()) {

?>

" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">

<?php

the_post_thumbnail(‚featured‘,array(‚class’=>’featured-thumb-wrapper‘, ‚title’=>$title));

?>

<?php

} else

if (isset($values[0])){

?>

" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">

<img src="<?php echo bloginfo(‚template_url‘); ?>/scripts/timthumb.php?src=/<?php echo urlencode($values[0]); ?>&w=100&h=65&zc=1&q=100" alt="<?php the_title(); ?>" class="left" width="100" height="65" />

<?php

} else {

?>

" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">

<img src="<?php echo bloginfo(‚template_url‘); ?>/scripts/timthumb.php?src=/images/no-image.png&w=100&h=65&zc=1&q=100" alt="<?php the_title(); ?>" class="left" width="100" height="65" />

<?php } ?>
<div class="info">

" rel="bookmark" class="title"><?php the_title(); ?>

<div class="meta">[ <?php the_time(‚j M Y‘) ?> | <?php comments_popup_link(‚No Comment‘, ‚One Comment‘, ‚% Comments‘);?> <?php if(function_exists(‚the_views‘)) { ?>| <?php the_views(); } ?>]

</div>
</div>

</div>
<?php endwhile; ?>
</div>
</div>
<div id="middle" class="clearfloat">

<img src="<?php bloginfo(‚template_url‘); ?>/images/category.png" class="clearfloat" alt="" />

<?php $display_categories = array(758,757,37,187,192); $i = 1;

foreach ($display_categories as $category) { ?>
<div id="cat-<?php echo $i; ?>" class="category" onclick="window.location.href='<?php echo get_category_link($category);?>’" >

<?php query_posts("showposts=1&cat=$category")?>

<?php if (is_category($category)) { ?>

<span class="cat_title"><?php single_cat_title(); ?></span>
<?php echo category_description($category); } ?>

</div>
<?php $i++; ?>

<?php } ?>
</div>
<?php } ?>
<div id="bottom" class="clearfloat">
<div id="front-list">
<?php

$page = (get_query_var(‚paged‘)) ? get_query_var(‚paged‘) : 1;

query_posts("cat=-27,-28&paged=$page"); ?>
<?php while (have_posts()) : the_post();

$values = get_post_custom_values("Image");

?>
<div class="clearfloat">

<h3 class="cat_title"><?php the_category(‚, ‚); ?> »</h3>

<div class="title">" rel="bookmark"><?php the_title(); ?></div>

<div class="meta">[ <?php the_time(‚j M Y‘) ?> | <?php comments_popup_link(‚No Comment‘, ‚One Comment‘, ‚% Comments‘);?> <?php if(function_exists(‚the_views‘)) { ?>| <?php the_views(); } ?>]</div>
<div class="spoiler">
<?php if (has_post_thumbnail()) {

?>

" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">

<?php

the_post_thumbnail(‚front-list‘,array(‚class’=>’front-list-thumb-wrapper‘, ‚title’=>$title));

?>

<?php

} else

if (isset($values[0])){

?>

" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">

<img src="<?php echo bloginfo(‚template_url‘); ?>/scripts/timthumb.php?src=/<?php echo urlencode($values[0]); ?>&w=150&h=150&zc=1&q=100" alt="<?php the_title(); ?>" class="left" width="150" height="150" />

<?php

} else {

?>

" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">

<img src="<?php echo bloginfo(‚template_url‘); ?>/scripts/timthumb.php?src=/images/no-image.png&w=150&h=150&zc=1&q=100" alt="<?php the_title(); ?>" class="left" width="150" height="150" />

<?php } ?>
<?php the_excerpt(); ?>

</div>
</div>

<?php endwhile; ?>
<div class="navigation">

<?php if(function_exists(‚wp_pagenavi‘)) { wp_pagenavi(); }

else { ?>
<div class="right"><?php next_posts_link(‚Next Page »‘) ?></div>

<div class="left"><?php previous_posts_link(‚« Previous Page‘) ?></div>

<?php } ?>
</div>

</div>
<?php get_sidebar(); ?>

</div>

<?php get_footer(); ?>

(von: Marinka)

Hier noch 18 weitere Ergebnisse dieses Threads:

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Joern

20. Nov. 2011 (von: Joern)

great, you did it...!actually you need to remove in index.php stuff just below<?php if(file_exists(TEMPLATEPATH . '/myslider.php')) {include (TEMPLATEPATH . '/myslider.php'); } ?>from here:<div id="top" class="clearfloat"><div id="headline">blabla bla bla down to this part:</div></div></div><?php endwhile; ?></div></div>KEEP the next line and everything below:<div…

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Marinka

20. Nov. 2011 (von: Marinka)

Joern,You are a God sent. Your instructions worked!! THANK YOU. Just to show you how challenged I am at this -- Here I thought I had downloaded the most recent version of this theme. Slowly but surely I will learn…

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Joern

20. Nov. 2011 (von: Joern)

But... where are your images now?Looks like you got an arthemia folder inside the arthemia folder?The link to the style.css points this (wrong) way:....wp-content/themes/arthemia-free/arthemia-free/style.cssI hope that's not because I suggested to use ... Weiterlesen →

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Marinka

21. Nov. 2011 (von: Marinka)

Hi!I'm looking for my images now Yes, I tried the new Timthumb and was not successful. Oh, oh. I have a arthemia folder in a arthemia folder. That can't be good. I'm in my FTP right now. Weiterlesen →

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Marinka

21. Nov. 2011 (von: Marinka)

You are right. There were two folders (I have no idea how I did that). I deleted them both and just reinstalled arthemia. Will have to redo. Thank you. Weiterlesen →

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Marinka

21. Nov. 2011 (von: Marinka)

Hi Joern,I reinstalled the theme and the images are not working either with the original Timthumb or the updated one. I set the cache to 777 as well. Any suggestions? Many thanks.Marinka Weiterlesen →

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Joern

21. Nov. 2011 (von: Joern)

lucky you are, was thinking of youI realized this already on your site, did you change the entry in your 'Image' customfield?Actually the developer said you should enter this path like this: (sample)wp-content/uploads/2011/11/Occupy-Toronto-Flag.pngth... Weiterlesen →

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Marinka

21. Nov. 2011 (von: Marinka)

Hi there!You have solved my latest problem once again. I tried your suggestion for the first four pictures and they are now appearing. THANK YOU. I have the timthumb 2 version installed from your most recent link. Is this the…

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Joern

21. Nov. 2011 (von: Joern)

Hi Marinka, yes!should be okay now, you are welcome____________________you find me on Google+, Twitter and Facebook Weiterlesen →

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Marinka

21. Nov. 2011 (von: Marinka)

Excellent. Thanks again! Weiterlesen →

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Marinka

22. Nov. 2011 (von: Marinka)

Hi,May I ask you another question? Can this slider be coded to pick up 4 images (posts) over and over instead of it picking up the latest four posts that are posted? I found the code where it is directed…

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by master

22. Nov. 2011 (von: master)

Hi there, good morning!There are many possibilities to do that.1. hardcode the IDs of 4 of your posts - you have to edit myslider.php to change to other posts however2. you assign a new CATEGORY to the for posts you…

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Marinka

22. Nov. 2011 (von: Marinka)

Hi,Thank you again for taking the time to help me. I know you have lots of other things to do. I think the #2 option looks like the simpliest approach using a featured category.Yes, I repaired the header.php. No idea…

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Marinka

17. Dez. 2011 (von: Marinka)

Hi Joern,I found your earlier instructions regarding setting the slider on a specific category and it works great. Thanks. May I ask you, how do you change the overlay on the slider to a darker color? So far I am…

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by master

17. Dez. 2011 (von: master)

hi, welcome backthe background of the text in the slider is indeed an overlay, it's an image actually!In your style.css the div class="info" tries to load this 'transparent-bg.png' image:#myslider .ui-tabs-panel .info{ position:absolute; top:240px; left:0; width:610px; height:70px; background: url('images/transparent-bg.png');}So what you…

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Marinka

17. Dez. 2011 (von: Marinka)

That did the trick! Thanks again so very, very much.Merry Christmas and happy holidays to you!Marinka Weiterlesen →

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by master

17. Dez. 2011 (von: master)

good, thank you,there is still an image not loading on your site:#navbar-wrapper { width:960px; background: url(images/navbar-wrapper.png);}it's not needed anyway so you could uncomment or delete that line like this:/* background: url(images/navbar-wrapper.png); */more again, (sorry I am 'playing' with your css..)the…

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Marinka

17. Dez. 2011 (von: Marinka)

You are the best. I implemented all of your suggestions and it looks so much, much better. Thanks again. Yes, I have been playing around with the sidebar. It has been giving me some trouble. The top Sidebar won't take…

Autor:

Du findest mich auch auf Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.

weitere forum Beiträge: