Forum Replies Created

Viewing 9 replies - 31 through 39 (of 39 total)
  • Thread Starter juicyjuke

    (@juicyjuke)

    something is messed up here lmao. I do like the idea of changing fonts for h2 tags tho

    Thread Starter juicyjuke

    (@juicyjuke)

    oh im using mini bootstrap for css and JS I entered what you put down in add custom css for that specific page. nothing happened.

    heres the file calling that template

    page-home.php

    <! DOCTYPE html>
    <?php get_header(); ?>
    
    <div class="row">
    
    		<?php 
    
    			$args_cat = array(
    				'include' => '8,10,9,13'
    			);
    
    			$categories = get_categories($args_cat);
    			foreach($categories as $category):
    				
    				$args = array(
    				'type' => 'post',
    				'posts_per_page' => 1,
    				'category__in' => $category->term_id,
    				'category__not_in' => array( 4 ),
    			);
    			
    			$lastBlog = new WP_Query( $args );
    			
    			if( $lastBlog->have_posts() ):
    				
    				while( $lastBlog->have_posts() ): $lastBlog->the_post(); ?>
    
    					<div class="col-xs-12 col-sm-4">
    					
    					<?php get_template_part('content','featured'); ?>
    
    					</div>
    				
    				<?php endwhile;
    				
    			endif;
    			
    			wp_reset_postdata();	
    
    			endforeach;
    
    		
    		?>
    
    </div>
    
    <div class="row">
    	
    	<div class="col-xs-12 col-sm-8">
    
    		<?php 
    		
    		if( have_posts() ):
    			
    			while( have_posts() ): the_post(); ?>
    				
    				<?php get_template_part('content',get_post_format()); ?>
    			
    			<?php endwhile;
    			
    		endif;
    		
    		//PRINT OTHER 2 POSTS NOT THE FIRST ONE
    /*
    		$args = array(
    			'type' => 'post',
    			'posts_per_page' => 2,
    			'offset' => 1,
    		);
    		
    		$lastBlog = new WP_Query($args);
    			
    		if( $lastBlog->have_posts() ):
    			
    			while( $lastBlog->have_posts() ): $lastBlog->the_post(); ?>
    
    				<?php get_template_part('content',get_post_format()); ?>
    			
    			<?php endwhile;
    			
    		endif;
    		
    		wp_reset_postdata();
    */				
    		?>
    		
    		<!-- <hr> -->
    		
    		<?php
    			
    		//PRINT ONLY TUTORIALS
    /*
    		$lastBlog = new WP_Query('type=post&posts_per_page=-1&category_name=midday-atrocity');
    			
    		if( $lastBlog->have_posts() ):
    			
    			while( $lastBlog->have_posts() ): $lastBlog->the_post(); ?>
    				
    				<?php get_template_part('content',get_post_format()); ?>
    			
    			<?php endwhile;
    			
    		endif;
    		
    		wp_reset_postdata();
    */				
    		?>
    	
    	</div>
    	
    	<div class="col-xs-12 col-sm-4">
    		<?php get_sidebar(); ?>
    	</div>
    	
    </div>
    
    <?php get_footer(); ?>
    </html>

    yeah the code doesn’t work in custom css.

    also the only thing I can see for body viewing page source is

    * html body { margin-top: 46px !important; }
    	}
    </style>
    		<style type="text/css" id="wp-custom-css">
    			/*
    You can add your own CSS here.
    
    Click the help icon above to learn more.
    */
    
    		</style>
    	<!-- Dojo Digital Hide Title -->
    <script type="text/javascript">
    	jQuery(document).ready(function($){
    
    		if( $('.entry-title').length != 0 ) {
    			$('.entry-title span.dojodigital_toggle_title').parents('.entry-title:first').hide();
    		} else {
    			$('h1 span.dojodigital_toggle_title').parents('h1:first').hide();
    			$('h2 span.dojodigital_toggle_title').parents('h2:first').hide();
    		}
    
    	});
    </script>
    <noscript><style type="text/css"> .entry-title { display:none !important; }</style></noscript>
    <!-- END Dojo Digital Hide Title -->
    
    			
    	</head>
    		
    	<body class="home page-template-default page page-id-2 logged-in admin-bar no-customize-support custom-background wp-custom-logo crazyjerks-class my_class">
    
    Thread Starter juicyjuke

    (@juicyjuke)

    I want to edit it for just this template only. not globally.

    Thread Starter juicyjuke

    (@juicyjuke)

    wow ok thanks! I will definitely look into that as soon as I sumbit this reply

    Thread Starter juicyjuke

    (@juicyjuke)

    ok strange because I implemented that same code various times, but not combined with the other like you directed me.

    im a noob but not a noob at the same time. if that’s possible.

    I used to use VB script for websites back in 99 on angelfire. and last ive done anything is when google first came out and I tricked it to get my “middle finger” site to the top for “house hold appliances searching” that’s how long its been

    Thread Starter juicyjuke

    (@juicyjuke)

    whats the reason for two separate codes? why not just one? the “a hover” literally has to be specified ? why not just a simple “a” ? also how come it doesn’t work

    when I previously in the past few days tried just `a:hover {
    text-decoration: underline;
    }`

    Thread Starter juicyjuke

    (@juicyjuke)

    holy crap. it worked. the code you gave me. lmao. first shot. I mean. I literally tried everything and even code similar to what you just gave me but I noticed something totally different of how you helped me.

    you gave me two separate codes to type in. not just one.

    a {
      text-decoration: none;
    }
    a:hover {
      text-decoration: underline;
    }

    I switched your underline; part
    to none;

    and it worked. wow. like you don’t understand I want to drive to your house and give you a big hug right now. im getting married soon…so no funny stuff.

    Thread Starter juicyjuke

    (@juicyjuke)

    oh ok. I haven’t uploaded my theme yet, and I have wordpress run locally for practice.

    I have hosting through godaddy, and some makeshift theme is slected at the moment until im complete creating my theme. so nothing up there at the moment .

    hmm. not sure how to upload my current workings yet. I haven’t gotten that far yet!

    Thread Starter juicyjuke

    (@juicyjuke)

    note… im just still getting familiar with CSS again. so the code above is just me testing things like getting rid of bullet points, and testing short codes.

Viewing 9 replies - 31 through 39 (of 39 total)