Forum Replies Created
-
AuthorPosts
-
May 10, 2015 at 10:05 am in reply to: Parallax Pro – Problems with summary preview in blog section #151508vajrasarMember
Okay. I overlooked that. I suggested this because the image studiopress is using has different dimension than the one currently used by the user.
I make WordPress websites using Genesis Framework.
May 10, 2015 at 10:04 am in reply to: Parallax Pro – Problems with summary preview in blog section #151505vajrasarMemberIt seems you have solved the issue. If so, please mark this as resolved. 🙂
I make WordPress websites using Genesis Framework.
vajrasarMemberWell, on the top of my head, you can create a custom template where that calculator (the code) can be placed, replacing the
genesis_loop
as whatever can be done in php can be done with WordPress (and Genesis).
I make WordPress websites using Genesis Framework.
vajrasarMemberTry this instead -
add_filter( 'genesis_attr_entry-title', 'custom_id_title' ); function custom_id_title( $attributes ) { $id = get_the_ID(); $attributes['id'] = $id; return $attributes; }
I make WordPress websites using Genesis Framework.
vajrasarMemberIt can be done. But before that please explain that what do you mean by -
Also, I want to be able to add up to 3 images in a series right after the post title.
I make WordPress websites using Genesis Framework.
May 10, 2015 at 9:44 am in reply to: Altitude Pro – Background Images are not loading correctly #151497vajrasarMemberCan you download this image and try in your third section? This is studiopress's image.
http://demo.studiopress.com/altitude/wp-content/themes/altitude-pro/images/bg-3.jpg
I make WordPress websites using Genesis Framework.
May 10, 2015 at 9:41 am in reply to: Altitude Pro – Background Images are not loading correctly #151492vajrasarMemberDid you do any changes in the templates or functions.php ?
I make WordPress websites using Genesis Framework.
vajrasarMemberThat can't be the case as your style.css code is generating from that folder only! If you want you can mail me the ftp details on [email protected] and I'll have a look.
I make WordPress websites using Genesis Framework.
May 10, 2015 at 7:31 am in reply to: Altitude Pro – Background Images are not loading correctly #151445vajrasarMemberThe images work fine as soon as the screen is adjusted (responsive stuff).
I make WordPress websites using Genesis Framework.
vajrasarMemberYou are outputting image twice. One with code and one with css. So, comment this css rule in
line 587
of stylesheet -.site-header .site-avatar img
Next, change
width: 430px;
tomin-width: 480px;
online 600
in style.css in the following rule -.site-header .avatar, .site-header .site-avatar img
I make WordPress websites using Genesis Framework.
May 10, 2015 at 6:48 am in reply to: Different background color for admin comments but NOT for nested comments? #151427vajrasarMemberPlease mark the topic as resolved. 🙂
I make WordPress websites using Genesis Framework.
vajrasarMemberThe sidebar in right shows the latest posts in my opinion (not sibling pages) except it leaves the one you are on at the moment and shows other latest posts/pages. Following code will get you started.
First, Enable php in widgets with this code in your functions.php -
add_filter('widget_text','execute_php',100); function execute_php($html){ if(strpos($html,"<"."?php")!==false){ ob_start(); eval("?".">".$html); $html=ob_get_contents(); ob_end_clean(); } return $html; }
then paste this code in your primary sidebar in a text widget -
<?php global $post; $p_id = $post->ID; $p_id = array( $p_id ); $args = array( 'post_type' => 'post', 'post__not_in' => $p_id, 'posts_per_page' => 5, ); $side_args = new WP_Query( $args ); if ($side_args->have_posts()) { ?> <ul> <?php while ($side_args->have_posts()) { $side_args->the_post(); ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php } ?> </ul> <?php } ?>
change
'post_type' => 'post'
to'post_type' => 'page'
if you want to show latest additions in pages.Articles about this topic is simple, as it can be done via Related post plugins (you can use tags in your posts to do so).
I make WordPress websites using Genesis Framework.
May 10, 2015 at 5:07 am in reply to: Different background color for admin comments but NOT for nested comments? #151411vajrasarMemberTry this -
.comment.bypostauthor .children .comment { background-color: #fff; } .comment.bypostauthor { background-color: red; }
I make WordPress websites using Genesis Framework.
vajrasarMember.site-description can be found at
line 1184
of/wp-content/themes/centric-pro/style.css
and .bumper can be found atline 1133
in the same stylesheet.
I make WordPress websites using Genesis Framework.
vajrasarMemberIn the code I mentioned (in the tutorial) to put in
functions.php
, replace that code with this -<?php //* Don't include this opening php tag //* Enqueue PowerTip add_action( 'wp_enqueue_scripts', 'sk_load_powertip' ); function sk_load_powertip() { // Won't enqueue if the device is mobile as there is no hover functionality for those devices if ( wp_is_mobile() ) { return; } if( is_home() ) { wp_enqueue_style( 'powertip-css', get_stylesheet_directory_uri() . '/css/jquery.powertip.min.css' ); wp_enqueue_script( 'powertip', get_stylesheet_directory_uri() . '/js/jquery.powertip.min.js', array( 'jquery' ), '', true ); wp_enqueue_script( 'powertip-init', get_stylesheet_directory_uri() .'/js/powertip-init.js' , array( 'powertip' ), '1.0.0', true ); } } add_action( 'genesis_entry_content', 'vg_show_hide_excerpt', 10 ); function vg_show_hide_excerpt() { if( is_home() ) { ?> <div class="hide-excerpt"> <?php echo wp_trim_words( get_the_content(), 80 ); ?> </div> <?php } }
Let me know if it works for you!
I make WordPress websites using Genesis Framework.
vajrasarMemberPlease mark this as resolved if you do not have any further questions. 🙂
I make WordPress websites using Genesis Framework.
vajrasarMemberAdding that css still makes the header shrink for me. Can you add the css I suggested and use hard refresh (Ctrl+f5 on Pc) to check. If it does not work, keep it in the css and mention that here.
I make WordPress websites using Genesis Framework.
vajrasarMemberFirst, you can add the enqueue_script code, as it will not interfere with the existing one (also don't comment the old code).
Second, the JS you pasted in last reply seems to be doing the same with taking
the_content
instead ofthe_excerpt
and showing it in tooltip. Moving forward, you can comment that code for a while and check the one I gave you in the way it is mentioned.I will try and come up with fetching content from post content rather than excerpt in few hours and will update you here.
PS. It goes without saying but do take a full backup before making changes.
I make WordPress websites using Genesis Framework.
vajrasarMemberTry adding this in your style.css and play with the px to get what you need
.home-odd {
padding: 65px;
}
I make WordPress websites using Genesis Framework.
vajrasarMemberI cannot help unless I see a live example of the problem. I see that you have not applied any changes to live site as of right now.
I make WordPress websites using Genesis Framework.
-
AuthorPosts