Forum Replies Created
-
AuthorPosts
-
rwendelnMember
Thanks, Sanjip. It looks like it’s working great now. Here’s the sample site, if you want to check it out:
http://prescienceassoc.wanderingjoy.com/front-page/strategic-planning/
And here’s where I inserted the test Revolution Slider in header.php through the editor:
`<head>
<?php
/**
* attitude_title hook
*
* HOOKED_FUNCTION_NAME PRIORITY
*
* attitude_add_meta 5
* attitude_show_title 10
*
*/
do_action( ‘attitude_title’ );/**
* attitude_meta hook
*/
do_action( ‘attitude_meta’ );/**
* attitude_links hook
*
* HOOKED_FUNCTION_NAME PRIORITY
*
* attitude_add_links 10
* attitude_favicon 15
* attitude_webpageicon 20
*
*/
do_action( ‘attitude_links’ );/**
* This hook is important for wordpress plugins and other many things
*/
wp_head();
?></head>
<body <?php body_class(); ?>>
<?php
/**
* attitude_before hook
*/
do_action( ‘attitude_before’ );
?><div class=”wrapper”>
<?php
/**
* attitude_before_header hook
*/
do_action( ‘attitude_before_header’ );
?><header id=”branding” >
<?php
/**
* attitude_header hook
*
* HOOKED_FUNCTION_NAME PRIORITY
*
* attitude_headerdetails 10
*/
do_action( ‘attitude_header’ );
?></header>
<?php
/**
* attitude_after_header hook
*/
do_action( ‘attitude_after_header’ );
?><?php
/**
* attitude_before_main hook
*/
do_action( ‘attitude_before_main’ );
?><?php putRevSlider(“Planning Services Slider”,”131″) ?>
<div id=”main” class=”container clearfix”>
December 19, 2013 at 5:31 pm in reply to: Possible to have a second business page (with different widget pages)?? #5728rwendelnMemberI am trying to duplicate this procedures (to create multiple “business pages”) and have been successful all the way through the final code for functions.php. I’ve appended the additional code for the additional business pages to the end of the functions.php file.
When I insert the code through the three “add_action” commands from the previous post, everything appears to work fine.
However, when I insert the code for “Display the widgets as content” coding” through the end, the Appearance dashboard for the theme doesn’t show.
Here’s how the close of my functions.php file presently looks (and appears to working alright).
function attitude_child_widgets_init() {
// Registering Business2 Page template sidebar
register_sidebar( array(
‘name’ => __( ‘Business2 Page Sidebar’, ‘attitude’ ),
‘id’ => ‘attitude_business2_page_sidebar’,
‘description’ => __( ‘Shows widgets on Business2 Page Template. Sutiable widget: Theme Horse: Featured widget, Theme Horse: Testimonial, Theme Horse: Services’, ‘attitude’ ),
‘before_widget’ => ‘<section id=”%1$s” class=”widget %2$s”>’,
‘after_widget’ => ‘</section>’,
‘before_title’ => ‘<h1 class=”widget-title”>’,
‘after_title’ => ‘</h1>’
) );
}
{
// Registering Business3 Page template sidebar
register_sidebar( array(
‘name’ => __( ‘Business3 Page Sidebar’, ‘attitude’ ),
‘id’ => ‘attitude_business3_page_sidebar’,
‘description’ => __( ‘Shows widgets on Business3 Page Template. Sutiable widget: Theme Horse: Featured widget, Theme Horse: Testimonial, Theme Horse: Services’, ‘attitude’ ),
‘before_widget’ => ‘<section id=”%1$s” class=”widget %2$s”>’,
‘after_widget’ => ‘</section>’,
‘before_title’ => ‘<h1 class=”widget-title”>’,
‘after_title’ => ‘</h1>’
) );
}
add_action( ‘widgets_init’, ‘attitude_child_widgets_init’ );
add_action( ‘attitude_business2_template_content’, ‘attitude_business2_template_widgetized_content’, 10 );
add_action( ‘attitude_business3_template_content’, ‘attitude_business3_template_widgetized_content’, 10 );?>
Thanks for your help.
-
AuthorPosts