thepartners 0 Report post Posted November 1, 2011 I followed the instructions and once i register the section in the functions.php file I get a white screen. I looked through the forums and others seem to have a problem but I never read of a resolution. Share this post Link to post Share on other sites
thepartners 0 Report post Posted November 1, 2011 Actually I realized that I would much prefer to duplicate sections so I can drag and drop the same section multiple times. Any Ideas? anyone? Share this post Link to post Share on other sites
Danny+ 1,327 Report post Posted November 1, 2011 Hi ThePartners, Which functions.php file are you registering the sections in? Can you post the code you used to register your section please? Can we have a link to your site please? Please search our forums, before posting! Share this post Link to post Share on other sites
thepartners 0 Report post Posted November 2, 2011 The site: http://www.jabezenterprisegroup.com/site2011/ [code] pagelines_register_section('NavigationOne', 'nav1', null, array('child' => true) ); [/code] I used the functions.php file in my base. Thanks for getting back to me. I am a newbie to php and appreciate any help you can give. Share this post Link to post Share on other sites
catrina 103 Report post Posted November 2, 2011 Where in functions.php did you add the code? Please read the docs before posting. Please do not private message me unless I ask you to. Designer | Catrina Dulay Founder | Catrina and Mouse Share this post Link to post Share on other sites
thepartners 0 Report post Posted November 2, 2011 hi catrina my function.php file looks like this and NavigationOne is what I added: [code] require_once(STYLESHEETPATH . "/advanced.php"); // ==================================================== // = YOUR FUNCTIONS - Where you should add your code = // ==================================================== // ADDING CUSTOM SECTIONS ------- // // Register a Drag&Drop HTML Section for the admin. // A pullquote section was created here for demonstration purposes // Sections should be named: section.[your section name].php and placed in the sections folder. function base_sections(){ /* Your custom sections get registered in here... PageLines Register Section Arguments: 1. Section Class Name, 2. Directory name (or filename if in root of 'sections' folder), 3. Init Filename (if different from directory name), 4. Section setup and variable array */ pagelines_register_section('BasePullQuote', 'pullquote', null, array('child' => true) ); pagelines_register_section('BaseSidebar','sb_base', null, array('child' => true) ); pagelines_register_section('NavigationOne', 'nav1', null, array('child' => true) ); } // ABOUT HOOKS --------// // Hooks are a way to easily add custom functions and content to the Platform theme. There are hooks placed strategically throughout the theme // so that you insert code and content with ease. // HOOKS EXAMPLE --------// // Below is an example of how you would add a social media icon to the icons in header (branding section) // We have placed a hook at the end of the icon set specifically add new icons without modifying code or having to worry about your edits // getting thrown out during the upgrade process. The way to use hooks goes a little like this: // add_action('hook_name','function name'); // ---> uncomment to load //add_action('pagelines_branding_icons_end', 'add_icons_to_branding'); // function name function add_icons_to_branding(){ // This hook adds a stumbleupon icon to the header of your theme. The class referenced in the link can be seen in the style.css // and is the image from the CSS is placed in the images folder ?> array( 'name' => 'Ubuntu', 'family' => '"Ubuntu", arial, serif', 'web_safe' => true, 'google' => true, 'monospace' => false ) ); return array_merge( $thefoundry, $myfont ); } // ADDING NEW TEMPLATES --------// // Want another page template for drag and drop? Easy :) // 1. Add File called page.[page-id].php to Base // 2. Add /* Template Name: Your Page Name */ and Call to 'setup_pagelines_template();' to that file (see page.base.php) // 3. Add 'pagelines_add_page('[page-id]', '[Page Name]');' to this functions.php file // Add Base Page if ( function_exists( 'pagelines_add_page' ) ) pagelines_add_page('base', 'Custom Page'); pagelines_add_page('navfirst', 'Nav First'); // OVERRIDE SECTION TEMPLATES --------// // Want more customization control over any of the core section templates in PlatformPro? Just override the template file. // To do that, just add a file called template.[section-id].php to this child theme and it will override the section templates // for the section with that ID. For example, template.boxes.php will override the boxes templates. // Once overridden you can copy the code from that section, paste it there and edit to your heart's content. [/code] Share this post Link to post Share on other sites
thepartners 0 Report post Posted November 2, 2011 Thanks everyone for your help and time. I found what I was looking for. [code] 'The Main Menu', ) ); } add_action( 'init', 'mytheme_addmenus' ); function mytheme_nav() { if ( function_exists( 'wp_nav_menu' ) ) wp_nav_menu( 'menu=main_nav&container_class=pagemenu&fallback_cb=mytheme_nav_fallback' ); else mytheme_nav_fallback(); } function mytheme_nav_fallback() { wp_page_menu( 'show_home=Start&menu_class=pagemenu' ); } ?> [/code] Share this post Link to post Share on other sites
thepartners 0 Report post Posted November 2, 2011 for other wonder how to add menus I found: http://codex.wordpress.org/Function_Reference/wp_nav_menu http://www.nicolaskuttler.com/post/wp_nav_menu-wordpress-3-0/?c=21615 http://www.wpbeginner.com/wp-themes/how-to-add-custom-navigation-menus-in-wordpress-3-0-themes/ Share this post Link to post Share on other sites