Forum Replies Created
-
AuthorPosts
-
January 7, 2014 at 4:48 pm in reply to: issues with adding filterable portfolio modern portfolio theme #83901dmcleod87Member
thanks @emasai, that works in chrome but not in firefox. guess i'll keep tinkering away!
January 7, 2014 at 4:44 pm in reply to: issues with adding filterable portfolio modern portfolio theme #83898dmcleod87Memberyeah @anitac i can understand why though, he probably gets inundated with requests for free help on a daily basis!
January 7, 2014 at 4:08 pm in reply to: add featured image to single post modern portfolio theme #83885dmcleod87Membersorry brad will do in future!
January 7, 2014 at 4:06 pm in reply to: issues with adding filterable portfolio modern portfolio theme #83883dmcleod87Memberhi anitac,
i left him a comment on his website but no response as yet. his website also said not to contact him for help unless directed by him so didn't want to annoy him. just thought someone on here may be able to help that's all.
thanks
January 6, 2014 at 9:45 pm in reply to: add featured image to single post modern portfolio theme #83733dmcleod87Memberok thanks brad. found this code snippet and it works perfectly for anyone else looking to do the same.
/** Add Post image before post content, single posts only */ add_action( 'genesis_before_post_content', 'child_post_image' ); function child_post_image() { if ( is_category() ) return; if ( $image = genesis_get_image( 'format=url&size=post-image' ) ) { printf( '<a href="%s" rel="bookmark"><img class="post-photo" src="%s" alt="%s" /></a>', get_permalink(), $image, the_title_attribute( 'echo=0' ) ); } }
dmcleod87Membernevermind figured it out. just had to remove custom loop and leave the widgets.
<?php /* Template Name: Widget Template */ //Featured Widgets add_action('genesis_before_content', 'iniyan_template'); function iniyan_template() { echo'<div id="tweaky-widgets">'; genesis_widget_area( 'home-featured', array( 'before' => '<div class="home-featured widget-area">', 'after' => '</div>', ) ); genesis_widget_area( 'featured-one', array( 'before' => '<div class="featured-one">', 'after' => '</div>', ) ); genesis_widget_area( 'featured-two', array( 'before' => '<div class="featured-two">', 'after' => '</div>', ) ); genesis_widget_area( 'featured-three', array( 'before' => '<div class="featured-three">', 'after' => '</div>', ) ); echo '</div>'; } genesis(); // <- everything important: make sure to include this.
dmcleod87Memberi'm using the genesis sample theme with a custom template and widgets, but need to show page content as well. full code for template is below -
<?php
/*
Template Name: Widget TemplateCreated for three featured widget section, by Iniyan-tweaky
*/
//Displaying posts on this page
remove_action( 'genesis_loop', 'genesis_do_loop' );add_action('genesis_loop', 'custom_loop');
function custom_loop() {
global $paged;$args = array('post_type' => 'page');
// Accepts WP_Query args
// (http://codex.wordpress.org/Class_Reference/WP_Query)// $query = new WP_Query( 'page_id=31' );
genesis_custom_loop( $args );
}
//Featured Widgets
add_action('genesis_before_content', 'iniyan_template');
function iniyan_template() {echo'<div id="tweaky-widgets">';
genesis_widget_area( 'home-featured', array(
'before' => '<div class="home-featured widget-area">',
'after' => '</div>',
) );genesis_widget_area( 'featured-one', array(
'before' => '<div class="featured-one">',
'after' => '</div>',
) );genesis_widget_area( 'featured-two', array(
'before' => '<div class="featured-two">',
'after' => '</div>',
) );genesis_widget_area( 'featured-three', array(
'before' => '<div class="featured-three">',
'after' => '</div>',
) );echo '</div>';
}
genesis(); // <- everything important: make sure to include this.
dmcleod87Memberthat's what it's set to currently, but still shows the other pages as posts...all i want is the homepage content which is there, but without the other page content underneath...
dmcleod87Memberthanks dave! way better than i had. will keep experimenting and see if i can improve.
dmcleod87Memberthanks lynne. it worked fine when i just have the one site and wordpress files in htdocs. it's only when i tried to setup multiple local wordpress in different installation folders that i can't seem to get the settings right. i was able to get it right by following the instructions in the link you posted so thanks for that...much appreciated!
dmcleod87Memberanyone have any idea what i'm doing wrong here?
i tried contacting the developer i hired to implement this but he said because i signed off on the changes it's not his problem anymore. i only noticed the issue after i accepted the changes...
dmcleod87Memberthat did it. i knew it was something easy. thanks!
November 1, 2013 at 7:17 pm in reply to: can't get any social sharing plugins to work on my site #70430dmcleod87Memberstill don't know what cause it but i've done a fresh install of wordpress, copied the database/theme over and the various sharing plugins seem to work fine now. just adding plugins and code to functions.php in case it happens again.
November 1, 2013 at 6:55 pm in reply to: can't get any social sharing plugins to work on my site #70428dmcleod87Memberno as in the facebook/twitter/g+ share buttons you usually see above and below the post content so you can share the article.
dmcleod87Memberthanks lynne. have sent you an email
dmcleod87Memberi've changed the selectors and updated text-align...still no luck. changing padding just puts the menu on two lines...so i don't think the selectors are working...
dmcleod87Memberyes the classes (home-menu & about-town) appear in web inspector, see screenshot below. that is why i think i am not targeting them correctly in the css...
dmcleod87Memberi'd completely forgotten about those options in the menu!
ok so i've add custom classes to the first/last menu option-
.nav-primary .wrap .genesis-nav-menu .menu-item .home-menu ul li a {
padding-left: 0px !important;
padding-left: 0rem !important;
}.nav-primary .wrap .genesis-nav-menu .menu-item .about-town ul li a {
padding-right: 0px !important;
padding-right: 0rem !important;
}still doesn't do anything...have i targeted them correctly? using Firebug i noticed each menu link had an id eg id=menu-item-15 etc but adding that didn't do anything either. i'm sure i'm missing something easy here!
dmcleod87Memberthanks anitac but i tried that before. still won't fill the entire width as per the screenshot above.
to use the nth-child, is this how I would target each menu item? changing (1) to correspond to the order the option appears?
.nav-primary .genesis-nav-menu ul li:nth-child(1)
i've tried the above with no luck...i'm new to the nth-child selector CSS
dmcleod87Memberthanks for the tip emasai.
i found this example code online...would something similar to this work except obviously using padding/margins instead of color?
nav ul li:nth-child(1) a span {
color: #5bb2fc;
}
nav ul li:nth-child(2) a span {
color: #58ebd3;
}
nav ul li:nth-child(3) a span {
color: #ffa659;
}....etc
-
AuthorPosts