htausch
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Zerif Lite] Change numbers in skill circlesFigured it out. Added this css:
input.skill1, input.skill2, input.skill3, input.skill4 {
visibility: hidden;
}
.unique-number {
color: #ffffff;
font: bold 16px Arial;
height: 21px;
margin-left: 15px;
margin-top: 21px;
padding: 0;
position: absolute;
text-align: center;
vertical-align: middle;
width: 36px;
}
Then changed the following to the about_us.php file found in the sections folder:echo '<div class="skill-count"><div class="unique-number">1</div>';
Forum: Plugins
In reply to: [Plugin: Jetpack] Display Site Title when no Site LogoAccording to this the
jetpack_has_site_logo();
is what I need to accomplish this.Forum: Themes and Templates
In reply to: Pull in content from page defined as static front pageThe id of the static front page saved as an option name
page_on_front
.Once you have it call
get_post_field()
.$front_page_id = get_option('page_on_front') $content = get_post_field('post_content', $front_page_id ); echo $content;
Forum: Plugins
In reply to: [Meta Box] Get different sizes in one functionSOLUTION:
<?php $dyno_images = rwmb_meta( 'gallery-images', 'type=image_advanced&size=thumbnail' ); $dyno_images_lrg = rwmb_meta( 'gallery-images', 'type=plupload_image&size=full' ); ?> <?php foreach ( $dyno_images_lrg as $dyno_image_lrg ) { foreach ( $dyno_images as $dyno_image ) { echo '<figure class="gallery-item"> <div class="gallery-icon landscape"> <a href="'.$dyno_image_lrg['url'].'" class="fancybox image" rel="gallery"> <img src="'.$dyno_image['url'].'" aria-describedby="gallery-1-584" class="attachment-full"> </a> </div> </figure>'; }} ?>
Forum: Fixing WordPress
In reply to: Change slug when changing custom post type in childSOLUTION:
flush_rewrite_rules(); function change_slug_of_post_type_portfolio() { $args = get_post_type_object("portfolio"); $args->rewrite["slug"] = "homepage"; register_post_type($args->name, $args); } add_action('init', 'change_slug_of_post_type_portfolio', 20);
Forum: Fixing WordPress
In reply to: Dynamically swap image on div mouseoverIt grabs the contents of the post and displays as many posts as there are of that custom post type. Here’s the full code, I probably should have done that from the beginning:
<?php $args = array( 'post_type' => 'team-members' ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); ?> <div class="parent"> <div class="ignore"> <img src="<?php get_field('home_image'); ?> <div class="text"> <h3><?php the_title(); ?></h3> </div> </div> </div> <?php endwhile; ?>
Forum: Fixing WordPress
In reply to: Dynamically swap image on div mouseoverI can use jquery, which is probably best because it’s going to be stuck inside a loop.
<?php $args = array( 'post_type' => 'team-members' ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); ?>
I can find plenty of solutions for using jquery to do this but can’t figure out how to incorporate the php get_field names.
Forum: Fixing WordPress
In reply to: Shortcodes Don't WorkTurns out it was an error in my single.php. I didn’t have a correct while statement for pulling the post content.
Forum: Fixing WordPress
In reply to: Custom Theme 404 Error with PermalinksI was able to fix it! After I updated the .htaccess file I had the idea to switch to twenty fourteen again and see if that still worked. It didn’t. So I decided to go through the troubleshooting process again. deactivating all the plugins fixed the issue this time! So I went through and reactivated them one by one until I found the culprit.
So it looks like the issue was a bad .htaccess file AND a conflicting plugin.