Forum Replies Created
-
AuthorPosts
-
wnbMember
anitac, please don't leave me now! OK I'm getting everything on the home page but how do I get the links to work from the nav menu on the top right
Thanks again
wnbMemberYes, i can put the demo info in the links and it takes me to the studio press demo site, I need it to take me to my info. Why can't I get it to take me to my links etc.
wnbMemberAnitac:
Yes, I have already downloaded the XML file. That is why there are some images. So I got it to look like the demo but the links to not work.
It is not scrolling. In fact if you will click on one of the links you will see that it does not take you to that section of the site, it gives an error message instead.
I followed the info on how to create the proper menu links to take you to the various sections but it is not working.
I really appreciate your help.
Wayne
wnbMemberHere you are anitac!
I have tried all sorts of things to get it working, I hope you can help me.
wnbMemberYes I see that big space where the sidebar should be, that won't work....
wnbMemberSoZo we were never able to get past the errors that were being creayed with the code. Is there anything I can show you to see what I am doing wrong?
Thanks
wnbMemberSoZo we were never able to get past the errors that was being created ....any ideas what the problem could be or what I can show you to see what I am doing wrong?
Thanks again
wnbMemberavhslibrary, no I didn't. I tried everything above but could not get past the problems. Please let me know if you find an answer and I'll do the same.
Thanks
wnbMemberI've tried it with and without the curly brackets and still no luck I keep getting that error message.
wnbMemberbump
wnbMemberOK, i redid it all removed the curly brackets } at the very end with ) I still get the error for Parse error: syntax error, unexpected ')' in /home/w446/public_html/K9/wp-content/themes/education/functions.php on line 117 which is again /** Reposition Breadcrumbs */
wnbMemberSoZo, thanks for the help but this is still not working. This time when I removed the <?php tag then it showed an error at line 114 that said :
Parse error: syntax error, unexpected $end in /home/w446/public_html/K9/wp-content/themes/education/functions.php on line 114 Line 1114 is simply /** Reposition Breadcrumbs */.I have gone in an loaded a fresh function.php to get it back up. But here is the function.php file that created the problem, can you see what the problem is?
Thanks again.......
<?php
/** Start the engine */
require_once( get_template_directory() . '/lib/init.php' );
/** Child theme (do not remove) */
define( 'CHILD_THEME_NAME', 'Education Theme' );
define( 'CHILD_THEME_URL', 'http://www.studiopress.com/themes/education' );
/** Create additional color style options */
add_theme_support( 'genesis-style-selector', array(
'education-black' => __( 'Black' , 'education' ),
'education-green' => __( 'Green' , 'education' ),
'education-purple' => __( 'Purple' , 'education' ),
'education-red' => __( 'Red' , 'education' ),
'education-teal' => __( 'Teal' , 'education' )
) );
add_action( 'genesis_meta', 'education_add_viewport_meta_tag' );
/** Add Viewport meta tag for mobile browsers */
function education_add_viewport_meta_tag() {
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>';
}
/** Add new image sizes */
add_image_size( 'featured-image', 150, 100, TRUE );
/** Add structural wraps */
add_theme_support( 'genesis-structural-wraps', array(
'header',
'nav',
'subnav',
'inner',
'footer-widgets',
'footer'
) );
/** Add support for custom background */
add_theme_support( 'custom-background' );
/** Add support for custom header */
add_theme_support( 'genesis-custom-header', array(
'width' => 1140,
'height' => 120
) );
/** Add support for 3-column footer widgets */
add_theme_support( 'genesis-footer-widgets', 3 );
/** Reposition Primary Navigation */
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_nav' );
/** Reposition Secondary Navigation */
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
add_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_subnav' );
/** Reposition Breadcrumbs */
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
add_action( 'genesis_before_content', 'genesis_do_breadcrumbs' );
add_filter( 'genesis_comment_list_args', 'child_comment_list_args' );
/** Change avatar size */
function child_comment_list_args( $args ) {
$args = array(
'type' => 'comment',
'avatar_size' => 33,
'callback' => 'genesis_comment_callback'
);
return $args;
}
/** Register widget areas */
genesis_register_sidebar( array(
'id' => 'slider',
'name' => __( 'Slider', 'education' ),
'description' => __( 'This is the slider section.', 'education' ),
) );
genesis_register_sidebar( array(
'id' => 'intro',
'name' => __( 'Intro', 'education' ),
'description' => __( 'This is the intro section displayed below the slider.', 'education' ),
) );
genesis_register_sidebar( array(
'id' => 'featured',
'name' => __( 'Featured', 'education' ),
'description' => __( 'This is the featured section displayed below the intro.', 'education' ),
) );
genesis_register_sidebar( array(
'id' => 'call-to-action',
'name' => __( 'Call To Action', 'education' ),
'description' => __( 'This is the call to action banner.', 'education' ),
) );
add_action( 'genesis_after_header', 'be_change_sidebar_order' );
/**
* Swap Primary and Secondary Sidebars on Sidebar-Sidebar-Content
*
* @author Bill Erickson
* @link http://www.billerickson.net/switch-genesis-sidebars/
*/
function be_change_sidebar_order() {
$site_layout = genesis_site_layout();
if ( 'sidebar-sidebar-content' == $site_layout ) {
// Remove the Primary Sidebar from the Primary Sidebar area.
remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );
// Remove the Secondary Sidebar from the Secondary Sidebar area.
remove_action( 'genesis_sidebar_alt', 'genesis_do_sidebar_alt' );
// Place the Secondary Sidebar into the Primary Sidebar area.
add_action( 'genesis_sidebar', 'genesis_do_sidebar_alt' );
// Place the Primary Sidebar into the Secondary Sidebar area.
add_action( 'genesis_sidebar_alt', 'genesis_do_sidebar' );
}
wnbMemberSoZo, I put it in the function.php and I keep getting errors. Here is the one I have now:
Parse error: syntax error, unexpected '<' in /home/w446/public_html/K9/wp-content/themes/education/functions.php on line 98
I went ahead and put in the entire code at this point. Line 98 is the first linen which is the <?php. Should there be 2 curly brackets at the end? What have I done wrong?
Thanks for the help.....
<?php
add_action( 'genesis_after_header', 'be_change_sidebar_order' );
/**
* Swap Primary and Secondary Sidebars on Sidebar-Sidebar-Content
*
* @author Bill Erickson
* @link http://www.billerickson.net/switch-genesis-sidebars/
*/
function be_change_sidebar_order() {
$site_layout = genesis_site_layout();
if ( 'sidebar-sidebar-content' == $site_layout ) {
// Remove the Primary Sidebar from the Primary Sidebar area.
remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );
// Remove the Secondary Sidebar from the Secondary Sidebar area.
remove_action( 'genesis_sidebar_alt', 'genesis_do_sidebar_alt' );
// Place the Secondary Sidebar into the Primary Sidebar area.
add_action( 'genesis_sidebar', 'genesis_do_sidebar_alt' );
// Place the Primary Sidebar into the Secondary Sidebar area.
add_action( 'genesis_sidebar_alt', 'genesis_do_sidebar' );
}
}wnbMemberSoZo, I switched to content sidebar and added this to styles.css but it still is not working. What have I done wrong?
<?php
add_action( 'genesis_after_header', 'be_change_sidebar_order' );
/**
* Swap Primary and Secondary Sidebars on Sidebar-Sidebar-Content
*
* @author Bill Erickson
* @link http://www.billerickson.net/switch-genesis-sidebars/
*/
function be_change_sidebar_order() {
$site_layout = genesis_site_layout();
if ( 'content-sidebar' == $site_layout ) {
// Remove the Primary Sidebar from the Primary Sidebar area.
remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );
// Place the Primary Sidebar into the Secondary Sidebar area.
add_action( 'genesis_sidebar_alt', 'genesis_do_sidebar' );
}wnbMemberBrad, thanks for taking the time to help me. I have read that setup info several times and I guess I am just not catching on to how it should be formatted. I have it loaded in a widget like outlined but I'm doing something that keeps the pics from coming up.
The second part of my question is based on this page: http://demo.studiopress.com/education/
I like all the stuff on top to the where the blog starts. Is there a way to do that on each page except on the content pages there is content and not a blog?
Thanks again
-
AuthorPosts