rebelyun
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] can’t get this to be reponsivethanks, it definitely helped to show me that it was .wpcf7 but it still wraps weird on mobile. desktop it’s fine. do you have any suggestions on how to accomplish this?
I tried it but it didn’t seem to have any effect. I figured it out at least. For anyone else looking I uploaded two more php files. One with the modification to the single.php I needed and the other just a backup of the original coding.
I then opened up single.php and inserted:
<?php get_header(); ?> <?php if ( have_posts() ) { the_post(); rewind_posts(); } if ( in_category(11) ) { include(TEMPLATEPATH . '/single-cat-custom.php'); } else { include(TEMPLATEPATH . '/single-default.php'); } ?> <?php get_footer(); ?>
Hope this helps anyone else looking to make specific changes to a post specific to a category.
Thanks for getting back to me.
I tried your first solution however I got the same syntax error on line 26.
<?php get_header(); ?> <div id="single_cont"> <?php if ( in_category('curriculum vitae') ) { include 'single-cat-custom.php'; } else { ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h1 class="single_title"><?php the_title(); ?></h1> <div class="datetime"> <?php the_time('m/j/y'); ?> at <?php the_time('G:i'); ?> </div> <div class="single_inside_content"> <?php the_content(); ?> </div><!--//single_inside_content--> <br /><br /> <?php comments_template(); ?> <?php endwhile; else: ?> <h3>Sorry, no posts matched your criteria.</h3> <?php endif; ?> </div><!--//single_left--> <?php get_sidebar(); ?> <div class="clear"></div> </div><!--//single_cont--> <?php get_footer(); ?>
any thoughts?
thanks for the reference but although relevant it didn’t seem to really give me an idea of how to proceed. I modified the php now to look like this and now the page shows a syntax error. Anyone have an idea as to what my novice mind did wrong?
<?php get_header(); ?> <div id="single_cont"> <?php if ( in_category('curriculum vitae') ) { include 'single-cat-custom.php'; } else { <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h1 class="single_title"><?php the_title(); ?></h1> <div class="datetime"> <?php the_time('m/j/y'); ?> at <?php the_time('G:i'); ?> </div> <div class="single_inside_content"> <?php the_content(); ?> </div><!--//single_inside_content--> <br /><br /> <?php comments_template(); ?> <?php endwhile; else: ?> <h3>Sorry, no posts matched your criteria.</h3> <?php endif; ?> </div><!--//single_left--> <?php get_sidebar(); ?> <div class="clear"></div> </div><!--//single_cont--> <?php get_footer(); ?>
Looks like it’s working now! Thank you so very much for all your help!
Thanks for your help Mr. Tod.
I tried all the changes and I’m pretty sure I did them all right. As after each update the site didn’t break at all. However the drop down menu still won’t appear.
But just to be sure below is my header.php
<!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" xmlns:v="urn:schemas-microsoft-com:vml"> <head> <link href='https://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'> <link href='https://fonts.googleapis.com/css?family=Raleway:400,100,200' rel='stylesheet' type='text/css'> <link href='https://fonts.googleapis.com/css?family=Cabin:700' rel='stylesheet' type='text/css'> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title><?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?></title> <?php wp_enqueue_script('jquery'); wp_enqueue_script('ArtWorksResponsiveScripts',get_stylesheet_directory_uri().'/js/scripts.js',array('jquery')); wp_enqueue_script('InfiniteScroll',get_stylesheet_directory_uri().'/js/jquery.infinitescroll.js',array('jquery')); wp_enqueue_style( 'ArtWorksResponsive', get_stylesheet_uri() ); ?> <?php wp_head(); ?> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> <!--[if lt IE 9]> <script src="https://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script> <![endif]--> <script type="text/javascript"> jQuery(document).ready( function(){ jQuery('#content_inside').infinitescroll({ navSelector : "div.load_more_text", // selector for the paged navigation (it will be hidden) nextSelector : "div.load_more_text a:first", // selector for the NEXT link (to page 2) itemSelector : "#content_inside .home_post_box" // selector for all items you'll retrieve },function(arrayOfNewElems){ jQuery('.home_post_box').hover( function() { jQuery(this).find('.home_post_text').css('display','block'); }, function () { jQuery(this).find('.home_post_text').css('display','none'); } ); //jQuery('.home_post_cont img').hover_caption(); // optional callback when new content is successfully loaded in. // keyword <code>this</code> will refer to the new DOM content that was just added. // as of 1.5, <code>this</code> matches the element you called the plugin on (e.g. #content) // all the new elements that were found are passed in as an array }); } ); </script> </head> <body> <?php $shortname = "neue"; ?> <?php if(get_option($shortname.'_background_image_url','') != "") { ?> <style type="text/css"> body { background-image: url('<?php echo get_option($shortname.'_background_image_url',''); ?>'); } </style> <?php } ?> <div id="main_container"> <div id="header"> <div class="left"> <?php if(get_option($shortname.'_custom_logo_url','') != "") { ?> <a href="<?php bloginfo('url'); ?>"><img src="<?php echo stripslashes(stripslashes(get_option($shortname.'_custom_logo_url',''))); ?>" class="logo" /></a> <?php } else { ?> <a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/logo.jpg" class="logo" /></a> <?php } ?> </div> <div class="right"> <div class="head_social"> <?php if(get_option($shortname.'_twitter_link','') != "") { ?> <a href="<?php echo get_option($shortname.'_twitter_link',''); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/twitter-icon.png" /></a> <?php } ?> <?php if(get_option($shortname.'_facebook_link','') != "") { ?> <a href="<?php echo get_option($shortname.'_facebook_link',''); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/facebook-icon.png" /></a> <?php } ?> <?php if(get_option($shortname.'_google_plus_link','') != "") { ?> <a href="<?php echo get_option($shortname.'_google_plus_link',''); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/google-plus-icon.png" /></a> <?php } ?> <?php if(get_option($shortname.'_dribbble_link','') != "") { ?> <a href="<?php echo get_option($shortname.'_dribbble_link',''); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/dribbble-icon.png" /></a> <?php } ?> <?php if(get_option($shortname.'_pinterest_link','') != "") { ?> <a href="<?php echo get_option($shortname.'_pinterest_link',''); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/pinterest-icon.png" /></a> <?php } ?> <div class="clear"></div> </div><!--//head_social--> <div class="header_menu"> <!-- <ul> <li><a href="#">HOME</a></li> <li><a href="#">ABOUT</a></li> <li><a href="#">CATEGORIES</a> <ul> <li><a href="#">Wordpress Themes</a></li> <li><a href="#">Create Plugins</a></li> <li><a href="#">Wordpress Themes</a></li> <li><a href="#">Create Plugins</a></li> </ul> </li> <li><a href="#">BLOG</a></li> <li><a href="#">CONTACT</a></li> </ul>--> <?php wp_nav_menu('menu=header_menu&container=false&menu_id='); ?> <div class="clear"></div> </div><!--//header_menu--> <div class="clear"></div> </div> <div class="clear"></div> <div class="tagline"> <?php echo get_option($shortname.'_header_text','Use Neue Theme Settings to update this text...') ?> </div><!--//tagline--> <?php if ( dynamic_sidebar('home_right_1') ) : else : endif; ?> <p></p><p></p> <div style="position:absolute;z-index:20;margin-left:482px; margin-top:-73px"> <iframe src="https://rcm-na.amazon-adsystem.com/e/cm?t=wwwricebombco-20&o=1&p=26&l=ur1&category=gold&banner=185C2AJPHN0G698PK902&f=ifr" width="468" height="60" scrolling="no" border="0" marginwidth="0" style="border:none;"></iframe> </div><!--//header-->
And below is my scripts.js file:
function neue_slider() { my_slider_counter = 0; curr_slide = 0; //nav_slider_counter = 0; //jquery(".slide_nav_cont ul").empty(); jquery('#slideshow img').each(function() { jquery(this).addClass('slide_' + my_slider_counter); my_slider_counter++; /* if(my_slider_counter == 1) jquery('.slide_nav_cont ul').append('<li class="current"></li>'); else jquery('.slide_nav_cont ul').append('<li></li>');*/ }); /* jquery('.slide_nav_cont ul li').each(function() { jquery(this).attr('alt',nav_slider_counter); nav_slider_counter++; }); */ function home_switch_slide() { if(curr_slide >= my_slider_counter) curr_slide = 0; else if(curr_slide < 0) curr_slide = (my_slider_counter-1); //alert(curr_slide); jquery('.slide_' + curr_slide).fadeIn(500); //jquery('.slide_nav_cont ul li').removeClass('current'); //jquery('.slide_nav_cont ul li[alt="' + curr_slide + '"]').addClass('current'); } function hide_curr_slide() { jquery('.slide_' + curr_slide).stop(); jquery('.slide_' + curr_slide).fadeOut(1500); } function next_slide_slider(jump_to_slide) { hide_curr_slide(); if(jump_to_slide == null) curr_slide++; else curr_slide = jump_to_slide; t_slide=setTimeout(home_switch_slide,0); //home_switch_image(); } function prev_slide_slider(jump_to_slide) { hide_curr_slide(); // curr_slide--; if(jump_to_slide == null) curr_slide--; else curr_slide = jump_to_slide; //home_switch_image(); t_slide=setTimeout(home_switch_slide,0); } jquery('.slide_prev').click(function() { prev_slide_slider(); clearInterval(intervalID_slide); //clearInterval(t_slide); intervalID_slide = setInterval(next_slide_slider, 8000); }); jquery('.slide_next').click(function() { next_slide_slider(); clearInterval(intervalID_slide); intervalID_slide = setInterval(next_slide_slider, 8000); }); /* jquery('.slide_nav_cont ul li').click(function() { clearInterval(intervalID_slide); next_slide_slider(jquery(this).attr('alt')); //clearInterval(t_testi); intervalID_slide = setInterval(next_slide_slider, 8000); }); */ //setInterval(next_slide_image, 5000); intervalID_slide = setInterval(next_slide_slider, 8000); } jQuery(document).ready(function($) { neue_slider(); jquery('.header_menu li').hover( function () { jquery('ul:first', this).css('display','block'); }, function () { jquery('ul:first', this).css('display','none'); } ); }); jQuery(document).ready(function($) { neue_slider(); jquery('.home_post_box').hover( function() { jquery(this).find('.home_post_text').css('display','block'); }, function () { jquery(this).find('.home_post_text').css('display','none'); } ); jquery('#slideshow_cont').hover( function() { jquery('.slide_prev').css('display','block'); jquery('.slide_next').css('display','block'); }, function() { jquery('.slide_prev').css('display','none'); jquery('.slide_next').css('display','none'); } ); });
commenting out the jquery however disables my categories drop down menu =(
it was worth a shot though. Thank you!
genius……thank you very much for your help!
Forum: Plugins
In reply to: [Cart66 Lite :: WordPress Ecommerce] No update of the checkout pagedid anyone have any luck? I’m not running any caching plugins and of course, cart66 wont help me if i didn’t buy the premium version….doesnt give me much confidence to want to buy it.
Forum: Plugins
In reply to: [Add Link to Facebook] posting on facebook linksI did, I got that part but once i do that, the comments do not transfer over from facebook to the blog or vice versa at all…
Forum: Fixing WordPress
In reply to: Older Posts Button Not Workinghey i see that you don’t have this problem anymore. Any advice? My issue is exactly how you described. thanks!
Forum: Fixing WordPress
In reply to: disable category from displaying in blog post header.worked like a charm, thank you very much for your help!