Forum Replies Created
-
AuthorPosts
-
alliechynnaMember
I've tried adding this but it comes up with an error every time, where about's in the code do I need to add it.
/** Add after post widgeted area */
add_action( 'genesis_before_loop', 'child_after_post_area', 9 );
function child_after_post_area() {
if(is_home()) {
echo '
'; dynamic_sidebar( 'after post area' ); echo '
';
}alliechynnaMemberThanks were about in my php do I need to add the first pice of code
<?php
/** Start the engine */
require_once( get_template_directory() . '/lib/init.php' );load_child_theme_textdomain( 'fabric8ted', apply_filters( 'child_theme_textdomain', get_stylesheet_directory() . '/languages', 'fabric8ted' ) );
/** Child theme (do not remove) */
define( 'CHILD_THEME_NAME', __( 'fabric8ted Theme', 'fabric8ted' ) );
define( 'CHILD_THEME_URL', 'http://my.studiopress.com/themes/fabric8ted' );/** Add Viewport meta tag for mobile browsers */
add_action( 'genesis_meta', 'fabric8ted_add_viewport_meta_tag' );
function fabric8ted_add_viewport_meta_tag() {
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>';
}/** Add support for custom header */
add_theme_support( 'genesis-custom-header', array(
'width' => 1140,
'height' => 150
) );/** Add support for custom background */
add_theme_support( 'custom-background' );/** Add home top widget area */
add_action( 'genesis_before_loop', 'fabric8ted_home_slider' );
function fabric8ted_home_slider() {
dynamic_sidebar( 'home-slider' );
}/** Sets Content Width */
$content_width = apply_filters( 'content_width', 680, 680, 1020 );/** Create additional color style options */
add_theme_support( 'genesis-style-selector', array(
'fabric8ted-purple' => __( 'Purple', 'fabric8ted' ),
'fabric8ted-blue' => __( 'Blue', 'fabric8ted' ),
'fabric8ted-green' => __( 'Green', 'fabric8ted' ),
) );/** Unregister layout settings */
genesis_unregister_layout( 'content-sidebar-sidebar' );
genesis_unregister_layout( 'sidebar-content-sidebar' );
genesis_unregister_layout( 'sidebar-sidebar-content' );/** Unregister secondary sidebar */
unregister_sidebar( 'sidebar-alt' );/** Add new image sizes */
add_image_size( 'featured', 285, 100, TRUE );
add_image_size( 'slider', 1140, 445, TRUE );/** Change the default comment callback */
add_filter( 'genesis_comment_list_args', 'fabric8ted_comment_list_args' );
function fabric8ted_comment_list_args( $args ) {
$args['callback'] = 'fabric8ted_comment_callback';
return $args;
}/** Customize the comment section */
function fabric8ted_comment_callback( $comment, $args, $depth ) {$GLOBALS['comment'] = $comment; ?>
<li <?php comment_class(); ?> id="comment-<?php comment_ID() ?>">
<?php do_action( 'genesis_before_comment' ); ?>
<div class="comment-header">
<div class="comment-author vcard">
<?php echo get_avatar( $comment, $size = $args['avatar_size'] ); ?>
<?php printf( '<cite class="fn">%s</cite> <span class="says">%s:</span>', get_comment_author_link(), apply_filters( 'comment_author_says_text', __( 'says', 'fabric8ted' ) ) ); ?>
<div class="comment-meta commentmetadata">
comment_ID ) ); ?>"><?php printf( '%1$s ' . __( 'at', 'fabric8ted' ) . ' %2$s', get_comment_date(), get_comment_time() ); ?>
<?php edit_comment_link( __( 'Edit', 'fabric8ted' ), g_ent( '• ' ), '' ); ?>
</div><!-- end .comment-meta -->
</div><!-- end .comment-author -->
</div><!-- end .comment-header --><div class="comment-content">
<?php if ( $comment->comment_approved == '0' ) : ?>
<p class="alert"><?php echo apply_filters( 'genesis_comment_awaiting_moderation', __( 'Your comment is awaiting moderation.', 'fabric8ted' ) ); ?></p>
<?php endif; ?><?php comment_text(); ?>
</div><!-- end .comment-content --><div class="reply">
<?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
</div><?php do_action( 'genesis_after_comment' );
/** No ending tag because of comment threading */
}
/** Add support for 3-column footer widgets */
add_theme_support( 'genesis-footer-widgets', 3 );/** Register widget areas **/
genesis_register_sidebar( array(
'id' => 'home-slider',
'name' => __( 'Home - Slider', 'fabric8ted' ),
'description' => __( 'This is the slider section on the home page.', 'fabric8ted' ),
) );
genesis_register_sidebar( array(
'id' => 'home-top',
'name' => __( 'Home - Top', 'fabric8ted' ),
'description' => __( 'This is the top section of the home page.', 'fabric8ted' ),
) );
genesis_register_sidebar( array(
'id' => 'home-cta',
'name' => __( 'Home - Call To Action', 'fabric8ted' ),
'description' => __( 'This is the call to action section on the home page.', 'fabric8ted' ),
) );
genesis_register_sidebar( array(
'id' => 'home-middle',
'name' => __( 'Home - Middle', 'fabric8ted' ),
'description' => __( 'This is the middle section of the home page.', 'fabric8ted' ),
) );
genesis_register_sidebar( array(
'id' => 'home-twitter',
'name' => __( 'Home - Twitter', 'fabric8ted' ),
'description' => __( 'This is the twitter feed section on the home page.', 'fabric8ted' ),
) );
genesis_register_sidebar( array(
'id' => 'home-bottom',
'name' => __( 'Home - Bottom', 'fabric8ted' ),
'description' => __( 'This is the bottom section of the home page.', 'fabric8ted' ),
) );/** Customize the credits */add_filter( 'genesis_footer_creds_text', 'custom_footer_creds_text' );
function custom_footer_creds_text() {
echo '<div class="creds"><p>';
echo 'Copyright © ';
echo date('Y');
echo ' | Allie Chynna | Designed by 21st Street Designs | Login';
echo '</p></div>';
}
alliechynnaMemberThanks, is there a specific forum on studiopress for that theme.
alliechynnaMemberYes I have and still doesn't work.
alliechynnaMemberThanks, Yes I'm confortable logging in/using my cpanel online.
Thanks anitac, but nothing on my post pages will work.
alliechynnaMemberThanks, deactivated all my plugins and still not working, also noticed that my visual editor is not working as well now.
alliechynnaMemberThanks, but not quite sure what you mean not very good with php.
I would like to have lines like the footer credits on this site.
alliechynnaMemberYes i have enabled content to appear on slider. Not sure how my header graphic has anything to do with why my slider is not working.
alliechynnaMemberThanks not sure what you mean, but I'm looking for a responsive theme that looks more like this
alliechynnaMemberThanks, but I'd really like to have them in written form so will just have a play with the css and see how I go.
alliechynnaMemberThanks, not very good with images, is there a standard size that an image should be.
alliechynnaMemberThanks, no I didn't have featured image set. Just stet one and it seems to be working fine. Do I have to do that everytime I add a new post as I didn't have to do that for any of my other posts.
alliechynnaMemberThanks for your help got them to work
alliechynnaMemberThanks I rearranged the links, but the icons still haven't change.
alliechynnaMemberThanks, do you know if there's anyway to rearrange the social media icons with that plugin, as I've tried using it but they only come up in one order
alliechynnaMemberI was just wondering if the social media icons on this site are using the simple social plugin or are they custom.
June 30, 2013 at 4:54 am in reply to: Help with recreating the lets connect text on this site #48513alliechynnaMemberYes I'm referring to the hover colour
June 30, 2013 at 4:14 am in reply to: Help with recreating the lets connect text on this site #48506alliechynnaMemberThanks, still a bit confused, how would I get them to be all different colours, then the same colour when I hover over them.
alliechynnaMemberWorking fine know
alliechynnaMemberThanks had miss a bit of css
-
AuthorPosts