Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    New Coder
    Join Date
    Dec 2011
    Location
    Detroit
    Posts
    81
    Thanks
    19
    Thanked 0 Times in 0 Posts

    Exclamation Wordpress permalinks screwing up stylesheet

    My client's site is self hosted on a windows server with IIS 11.
    They recently upgraded the server.
    PHP and mySQL are installed and functioning normally.

    Ive never built a site on a windows server before - its always been apache servers.

    The primary difference i am aware of is rather than the .htaccess it uses a web.config file.

    Problem is when i switch permalink settings in Wordpress to anything other than deafult, the stylesheet stops working, as well as the iframe i have been using for the slideshow.

    the end result looks like this:




    but when i switch the permalinks back to 'default' it looks normal like this:



    I dont understand what could possibly be causing this, but i figure someone more experienced than i am may be able to shed some light.

    has anyone else run into this or similar problems?

    Also when viewing the site in IE or chrome on pc, it looks normal,
    but when i look at in chrome, FF, or safari (on mac os x lion) it displays as i showed you in the first screenshot.

    the site in question can be found at: http://americanindustrialinc.com/wp
    Last edited by Tim@DIM; 02-28-2013 at 09:04 PM.

  • #2
    New Coder
    Join Date
    Dec 2011
    Location
    Detroit
    Posts
    81
    Thanks
    19
    Thanked 0 Times in 0 Posts
    Hello all,

    I am still having this issue. Is anyone knowledgeable enough to help me?
    It has taken me a long time to post in this again asi have been busy with other issues and changes to this and other websites.

    Whenever i change my permalink structure, all logic seems to go out the window.
    I lose alot of my css rules, links no longer work, etc.

    This is how the site looks without "pretty" permalinks:




    here is how my site looks when i change the permalink structure of wordpress:



    the site is americanindustrialinc .com /wp


    the web.config is as follows and was taken directly from the wordpress codex:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    <system.webServer>
    <rewrite>
    <rules>
    <rule name="WordPress Rule" stopProcessing="true">
    <match url=".*" />
    <conditions>
    <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
    </conditions>
    <action type="Rewrite" url="index.php?page_id={R:0}" />
    </rule>
    </rules>
    </rewrite>
    </system.webServer>
    </configuration>
    this issue is now across all browsers. Crome, FF, IE, Safari, Mac, PC.

    I really need to figure out how to fix this so i can make the site live and fulfil my obligation to the client.

    PLEASE HELP.
    Last edited by Tim@DIM; 10-23-2013 at 08:05 PM.

  • #3
    Regular Coder
    Join Date
    Mar 2013
    Posts
    262
    Thanks
    4
    Thanked 67 Times in 67 Posts
    It looks fine right now. Try changing the permalinks. I'm curious to see what happens.

    Also, make sure you have URL Rewrite Module installed.
    Last edited by ttkim; 10-23-2013 at 11:26 PM.
    My signature :)

  • #4
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,492
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    I see something on this page:
    http://codex.wordpress.org/Using_Per...ut_mod_rewrite

    Scroll down about 1/2 way to this part:
    Permalinks without mod_rewrite


    Have you actually Googled your problem to see if someone else has a solution?
    https://www.google.com/#q=wordpress+...erver&safe=off

  • Users who have thanked mlseim for this post:

    Tim@DIM (10-24-2013)

  • #5
    New Coder
    Join Date
    Dec 2011
    Location
    Detroit
    Posts
    81
    Thanks
    19
    Thanked 0 Times in 0 Posts
    in troubleshooting this issue i find myself with another.
    Suddenly i cannot drag and drop widgets where they need to be.
    i uploaded a video of the issue:
    http://www.youtube.com/watch?v=-POqP...ature=youtu.be

    I was able to fix this glitch by reverting all the way back to 3.5.1 of the wp core
    Last edited by Tim@DIM; 10-24-2013 at 02:42 PM. Reason: fixed issue

  • #6
    New Coder
    Join Date
    Dec 2011
    Location
    Detroit
    Posts
    81
    Thanks
    19
    Thanked 0 Times in 0 Posts

    Macintosh

    Quote Originally Posted by ttkim View Post
    It looks fine right now. Try changing the permalinks. I'm curious to see what happens.

    Also, make sure you have URL Rewrite Module installed.
    If mod_rewrite was not installed, wouldnt the navigation just not work at all when i change the permalink structure?

    also:
    i could not leave the site overnight with a permalink structure that was causing issues. (one of) my client(s) tends to check the site(s) at extremely odd times and i would likely have come in to angry emails or received phone calls at stupid hours of the night.

    Now that i am in the office again, i will leave the permalinks on %postname% until i find a solution or i leave again at 5pm.

  • #7
    Regular Coder
    Join Date
    Mar 2013
    Posts
    262
    Thanks
    4
    Thanked 67 Times in 67 Posts
    Right now, I see a 500 internal server. You should speak to your host about this since that usually happens when the server is misconfigured in some way or you have a problem with the .htaccess/web.config file.
    My signature :)

  • #8
    New Coder
    Join Date
    Dec 2011
    Location
    Detroit
    Posts
    81
    Thanks
    19
    Thanked 0 Times in 0 Posts
    I wasnt getting any error - but i realized i had removed the web.config file. I have replaced it now.

    also, the biggest problem with this whole project is that the client is self-hosted. they have their own webserver, but they are not large enough to have an IT department. At one point they hired an IT company to set things up for them but i am unaware of the extent of that contract - i do not know if it is an on-going thing or if it was a one-time service.

  • #9
    New Coder
    Join Date
    Dec 2011
    Location
    Detroit
    Posts
    81
    Thanks
    19
    Thanked 0 Times in 0 Posts
    I had the client check and discovered that URL Rewrite Module is installed (its a windows IIS server), so either something isnt configured right or the problem is elsewhere

  • #10
    Regular Coder
    Join Date
    Mar 2013
    Posts
    262
    Thanks
    4
    Thanked 67 Times in 67 Posts
    I think that client can just purchase hosting for very cheap and not deal with all the hassle that comes with self-hosting it. Lol.

    Anyway, after you re-uploaded the web.config file, it seems to be working for me. Is the stylesheet still the problem on your end?
    My signature :)

  • Users who have thanked ttkim for this post:

    Tim@DIM (10-24-2013)

  • #11
    New Coder
    Join Date
    Dec 2011
    Location
    Detroit
    Posts
    81
    Thanks
    19
    Thanked 0 Times in 0 Posts
    everything seems to be fine now.
    I dont understand why it wouldnt work before, but is now, except that i reverted to an earlier version of wordpress.

    I will continue to monitor this for a few days in case something somehow changes on it's own later (it shouldnt be possible but it has happened to me before), but for the time being it looks good in all browsers.

    Believe me, i wish the client had gone with a hosting service, but by the time i hooked up with them, they had already had their own server for a long time, i am simply redoing an existing website (hence why this is in a subdirectory).

    it has been a serious challenge and there have been many problems. I am used to Linux apache servers and hosting services, etc, the original site was written in ASP which i know nothing about... its been nuts.
    I greatly appreciate your help.

  • #12
    New Coder
    Join Date
    Dec 2011
    Location
    Detroit
    Posts
    81
    Thanks
    19
    Thanked 0 Times in 0 Posts
    aaand now its failing again.

    i hate browser caches

  • #13
    New Coder
    Join Date
    Dec 2011
    Location
    Detroit
    Posts
    81
    Thanks
    19
    Thanked 0 Times in 0 Posts
    when switching to another theme, permalinks work perfectly fine.
    so it seems the problem is somewhere, somehow in my theme, but i have no idea what could be causing this.

    i dont even know where to start

  • #14
    Regular Coder
    Join Date
    Mar 2013
    Posts
    262
    Thanks
    4
    Thanked 67 Times in 67 Posts
    Which theme are you using?

    I guess you can try showing us files that have a bulk of PHP in it like the functions file.
    My signature :)

  • #15
    New Coder
    Join Date
    Dec 2011
    Location
    Detroit
    Posts
    81
    Thanks
    19
    Thanked 0 Times in 0 Posts
    I'm using a custom theme i built based on the 2010 theme.

    I'm not sure what you mean exactly by 'the bulk of php' but i will post the contents of the functions file for you now.

    PArt 1:

    PHP Code:
    <?php

    add_filter
    ('widget_text''do_shortcode');

    /**
     * americanindustrial functions and definitions
     *
     * Sets up the theme and provides some helper functions. Some helper functions
     * are used in the theme as custom template tags. Others are attached to action and
     * filter hooks in WordPress to change core functionality.
     *
     * The first function, americanindustrial_setup(), sets up the theme by registering support
     * for various features in WordPress, such as post thumbnails, navigation menus, and the like.
     *
     * When using a child theme (see http://codex.wordpress.org/Theme_Development and
     * http://codex.wordpress.org/Child_Themes), you can override certain functions
     * (those wrapped in a function_exists() call) by defining them first in your child theme's
     * functions.php file. The child theme's functions.php file is included before the parent
     * theme's file, so the child theme functions would be used.
     *
     * Functions that are not pluggable (not wrapped in function_exists()) are instead attached
     * to a filter or action hook. The hook can be removed by using remove_action() or
     * remove_filter() and you can attach your own function to the hook.
     *
     * We can remove the parent theme's hook only after it is attached, which means we need to
     * wait until setting up the child theme:
     *
     * <code>
     * add_action( 'after_setup_theme', 'my_child_theme_setup' );
     * function my_child_theme_setup() {
     *     // We are providing our own filter for excerpt_length (or using the unfiltered value)
     *     remove_filter( 'excerpt_length', 'americanindustrial_excerpt_length' );
     *     ...
     * }
     * </code>
     *
     * For more information on hooks, actions, and filters, see http://codex.wordpress.org/Plugin_API.
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
     */

    /**
     * Set the content width based on the theme's design and stylesheet.
     *
     * Used to set the width of images and content. Should be equal to the width the theme
     * is designed for, generally via the style.css stylesheet.
     */
    if ( ! isset( $content_width ) )
        
    $content_width 640;

    /** Tell WordPress to run twentyten_setup() when the 'after_setup_theme' hook is run. */
    add_action'after_setup_theme''twentyten_setup' );

    if ( ! 
    function_exists'americanindustrial_setup' ) ):
    /**
     * Sets up theme defaults and registers support for various WordPress features.
     *
     * Note that this function is hooked into the after_setup_theme hook, which runs
     * before the init hook. The init hook is too late for some features, such as indicating
     * support post thumbnails.
     *
     * To override americanindustrial_setup() in a child theme, add your own americanindustrial_setup to your child theme's
     * functions.php file.
     *
     * @uses add_theme_support() To add support for post thumbnails and automatic feed links.
     * @uses register_nav_menus() To add support for navigation menus.
     * @uses add_custom_background() To add support for a custom background.
     * @uses add_editor_style() To style the visual editor.
     * @uses load_theme_textdomain() For translation/localization support.
     * @uses add_custom_image_header() To add support for a custom header.
     * @uses register_default_headers() To register the default custom header images provided with the theme.
     * @uses set_post_thumbnail_size() To set a custom post thumbnail size.
     *
     * @since Twenty Ten 1.0
     */
    function americanindustrial_setup() {

        
    // This theme styles the visual editor with editor-style.css to match the theme style.
        
    add_editor_style();

        
    // Post Format support. You can also use the legacy "gallery" or "asides" (note the plural) categories.
        
    add_theme_support'post-formats', array( 'aside''gallery' ) );

        
    // This theme uses post thumbnails
        
    add_theme_support'post-thumbnails' );

        
    // Add default posts and comments RSS feed links to head
        
    add_theme_support'automatic-feed-links' );

        
    // Make theme available for translation
        // Translations can be filed in the /languages/ directory
        
    load_theme_textdomain'americanindustrial'TEMPLATEPATH '/languages' );

        
    $locale get_locale();
        
    $locale_file TEMPLATEPATH "/languages/$locale.php";
        if ( 
    is_readable$locale_file ) )
            require_once( 
    $locale_file );

        
    // This theme uses wp_nav_menu() in one location.
        
    register_nav_menus( array(
            
    'primary' => __'Primary Navigation''americanindustrial' ),
        ) );

        
    // This theme allows users to set a custom background
        
    add_custom_background();

        
    // Your changeable header business starts here
        
    if ( ! defined'HEADER_TEXTCOLOR' ) )
            
    define'HEADER_TEXTCOLOR''' );

        
    // No CSS, just IMG call. The %s is a placeholder for the theme template directory URI.
        
    if ( ! defined'HEADER_IMAGE' ) )
            
    define'HEADER_IMAGE''%s/images/headers/path.jpg' );

        
    // The height and width of your custom header. You can hook into the theme's own filters to change these values.
        // Add a filter to americanindustrial_header_image_width and americanindustrial_header_image_height to change these values.
        
    define'HEADER_IMAGE_WIDTH'apply_filters'americanindustrial_header_image_width'940 ) );
        
    define'HEADER_IMAGE_HEIGHT'apply_filters'americanindustrial_header_image_height'198 ) );

        
    // We'll be using post thumbnails for custom header images on posts and pages.
        // We want them to be 940 pixels wide by 198 pixels tall.
        // Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php.
        
    set_post_thumbnail_sizeHEADER_IMAGE_WIDTHHEADER_IMAGE_HEIGHTtrue );

        
    // Don't support text inside the header image.
        
    if ( ! defined'NO_HEADER_TEXT' ) )
            
    define'NO_HEADER_TEXT'true );

        
    // Add a way for the custom header to be styled in the admin panel that controls
        // custom headers. See americanindustrial_admin_header_style(), below.
        
    add_custom_image_header'''americanindustrial_admin_header_style' );

        
    // ... and thus ends the changeable header business.

        // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI.
        
    register_default_headers( array(
            
    'berries' => array(
                
    'url' => '%s/images/headers/berries.jpg',
                
    'thumbnail_url' => '%s/images/headers/berries-thumbnail.jpg',
                
    /* translators: header image description */
                
    'description' => __'Berries''americanindustrial' )
            ),
            
    'cherryblossom' => array(
                
    'url' => '%s/images/headers/cherryblossoms.jpg',
                
    'thumbnail_url' => '%s/images/headers/cherryblossoms-thumbnail.jpg',
                
    /* translators: header image description */
                
    'description' => __'Cherry Blossoms''americanindustrial' )
            ),
            
    'concave' => array(
                
    'url' => '%s/images/headers/concave.jpg',
                
    'thumbnail_url' => '%s/images/headers/concave-thumbnail.jpg',
                
    /* translators: header image description */
                
    'description' => __'Concave''americanindustrial' )
            ),
            
    'fern' => array(
                
    'url' => '%s/images/headers/fern.jpg',
                
    'thumbnail_url' => '%s/images/headers/fern-thumbnail.jpg',
                
    /* translators: header image description */
                
    'description' => __'Fern''americanindustrial' )
            ),
            
    'forestfloor' => array(
                
    'url' => '%s/images/headers/forestfloor.jpg',
                
    'thumbnail_url' => '%s/images/headers/forestfloor-thumbnail.jpg',
                
    /* translators: header image description */
                
    'description' => __'Forest Floor''americanindustrial' )
            ),
            
    'inkwell' => array(
                
    'url' => '%s/images/headers/inkwell.jpg',
                
    'thumbnail_url' => '%s/images/headers/inkwell-thumbnail.jpg',
                
    /* translators: header image description */
                
    'description' => __'Inkwell''americanindustrial' )
            ),
            
    'path' => array(
                
    'url' => '%s/images/headers/path.jpg',
                
    'thumbnail_url' => '%s/images/headers/path-thumbnail.jpg',
                
    /* translators: header image description */
                
    'description' => __'Path''americanindustrial' )
            ),
            
    'sunset' => array(
                
    'url' => '%s/images/headers/sunset.jpg',
                
    'thumbnail_url' => '%s/images/headers/sunset-thumbnail.jpg',
                
    /* translators: header image description */
                
    'description' => __'Sunset''americanindustrial' )
            )
        ) );
    }
    endif;

    if ( ! 
    function_exists'americanindustrial_admin_header_style' ) ) :
    /**
     * Styles the header image displayed on the Appearance > Header admin panel.
     *
     * Referenced via add_custom_image_header() in americanindustrial_setup().
     *
     * @since Twenty Ten 1.0
     */
    function americanindustrial_admin_header_style() {
    ?>
    <style type="text/css">
    /* Shows the same border as on front end */
    #headimg {
        border-bottom: 1px solid #000;
        border-top: 4px solid #000;
    }
    /* If NO_HEADER_TEXT is false, you would style the text with these selectors:
        #headimg #name { }
        #headimg #desc { }
    */
    </style>
    <?php
    }
    endif;

    /**
     * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
     *
     * To override this in a child theme, remove the filter and optionally add
     * your own function tied to the wp_page_menu_args filter hook.
     *
     * @since Twenty Ten 1.0
     */
    function americanindustrial_page_menu_args$args ) {
        
    $args['show_home'] = true;
        return 
    $args;
    }
    add_filter'wp_page_menu_args''americanindustrial_page_menu_args' );

    /**
     * Sets the post excerpt length to 40 characters.
     *
     * To override this length in a child theme, remove the filter and add your own
     * function tied to the excerpt_length filter hook.
     *
     * @since Twenty Ten 1.0
     * @return int
     */
    function americanindustrial_excerpt_length$length ) {
        return 
    40;
    }
    add_filter'excerpt_length''americanindustrial_excerpt_length' );

    /**
     * Returns a "Continue Reading" link for excerpts
     *
     * @since Twenty Ten 1.0
     * @return string "Continue Reading" link
     */
    function americanindustrial_continue_reading_link() {
        return 
    ' <a href="'get_permalink() . '">' __'Continue reading <span class="meta-nav">&rarr;</span>''americanindustrial' ) . '</a>';
    }

    /**
     * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and americanindustrial_continue_reading_link().
     *
     * To override this in a child theme, remove the filter and add your own
     * function tied to the excerpt_more filter hook.
     *
     * @since Twenty Ten 1.0
     * @return string An ellipsis
     */
    function americanindustrial_auto_excerpt_more$more ) {
        return 
    ' &hellip;' americanindustrial_continue_reading_link();
    }
    add_filter'excerpt_more''americanindustrial_auto_excerpt_more' );

    /**
     * Adds a pretty "Continue Reading" link to custom post excerpts.
     *
     * To override this link in a child theme, remove the filter and add your own
     * function tied to the get_the_excerpt filter hook.
     *
     * @since Twenty Ten 1.0
     * @return string Excerpt with a pretty "Continue Reading" link
     */
    function americanindustrial_custom_excerpt_more$output ) {
        if ( 
    has_excerpt() && ! is_attachment() ) {
            
    $output .= americanindustrial_continue_reading_link();
        }
        return 
    $output;
    }
    add_filter'get_the_excerpt''americanindustrial_custom_excerpt_more' );

    /**
     * Remove inline styles printed when the gallery shortcode is used.
     *
     * Galleries are styled by the theme in Twenty Ten's style.css. This is just
     * a simple filter call that tells WordPress to not use the default styles.
     *
     * @since Twenty Ten 1.2
     */
    add_filter'use_default_gallery_style''__return_false' );

    /**
     * Deprecated way to remove inline styles printed when the gallery shortcode is used.
     *
     * This function is no longer needed or used. Use the use_default_gallery_style
     * filter instead, as seen above.
     *
     * @since Twenty Ten 1.0
     * @deprecated Deprecated in Twenty Ten 1.2 for WordPress 3.1
     *
     * @return string The gallery style filter, with the styles themselves removed.
     */
    function americanindustrial_remove_gallery_css$css ) {
        return 
    preg_replace"#<style type='text/css'>(.*?)</style>#s"''$css );
    }
    // Backwards compatibility with WordPress 3.0.
    if ( version_compare$GLOBALS['wp_version'], '3.1''<' ) )
        
    add_filter'gallery_style''americanindustrial_remove_gallery_css' );

    if ( ! 
    function_exists'americanindustrial_comment' ) ) :
    /**
     * Template for comments and pingbacks.
     *
     * To override this walker in a child theme without modifying the comments template
     * simply create your own americanindustrial_comment(), and that function will be used instead.
     *
     * Used as a callback by wp_list_comments() for displaying the comments.
     *
     * @since Twenty Ten 1.0
     */
    function americanindustrial_comment$comment$args$depth ) {
        
    $GLOBALS['comment'] = $comment;
        switch ( 
    $comment->comment_type ) :
            case 
    '' :
        
    ?>
        <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
            <div id="comment-<?php comment_ID(); ?>">
            <div class="comment-author vcard">
                <?php echo get_avatar$comment40 ); ?>
                <?php printf__'%s <span class="says">says:</span>''americanindustrial' ), sprintf'<cite class="fn">%s</cite>'get_comment_author_link() ) ); ?>
            </div><!-- .comment-author .vcard -->
            <?php if ( $comment->comment_approved == '0' ) : ?>
                <em class="comment-awaiting-moderation"><?php _e'Your comment is awaiting moderation.''americanindustrial' ); ?></em>
                <br />
            <?php endif; ?>

            <div class="comment-meta commentmetadata"><a href="<?php echo esc_urlget_comment_link$comment->comment_ID ) ); ?>">
                <?php
                    
    /* translators: 1: date, 2: time */
                    
    printf__'%1$s at %2$s''americanindustrial' ), get_comment_date(),  get_comment_time() ); ?></a><?php edit_comment_link__'(Edit)''americanindustrial' ), ' ' );
                
    ?>
            </div><!-- .comment-meta .commentmetadata -->

            <div class="comment-body"><?php comment_text(); ?></div>

            <div class="reply">
                <?php comment_reply_linkarray_merge$args, array( 'depth' => $depth'max_depth' => $args['max_depth'] ) ) ); ?>
            </div><!-- .reply -->
        </div><!-- #comment-##  -->

        <?php
                
    break;
            case 
    'pingback'  :
            case 
    'trackback' :
        
    ?>
        <li class="post pingback">
            <p><?php _e'Pingback:''americanindustrial' ); ?> <?php comment_author_link(); ?><?php edit_comment_link__'(Edit)''americanindustrial' ), ' ' ); ?></p>
        <?php
                
    break;
        endswitch;
    }
    endif;

    /**
     * Register widgetized areas, including two sidebars and four widget-ready columns in the footer.
     *
     * To override americanindustrial_widgets_init() in a child theme, remove the action hook and add your own
     * function tied to the init hook.
     *
     * @since Twenty Ten 1.0
     * @uses register_sidebar
     */
    function americanindustrial_widgets_init() {

        
    // Area 9, located in the footer area.
        
    register_sidebar( array(
            
    'name' => __'blogpost widget area''twentyten' ),
            
    'id' => 'blogpost-widget-area',
            
    'description' => __'adds a widget area below the navigation for images/slideshows''twentyten' ),
            
    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
            
    'after_widget' => '</li>',
            
    'before_title' => '<h3 class="widget-title">',
            
    'after_title' => '</h3>',
        ) );


        
    // Area 8, located below the nav menu.
        
    register_sidebar( array(
            
    'name' => __'slideshow widget area''twentyten' ),
            
    'id' => 'slideshow-widget-area',
            
    'description' => __'adds a widget area below the navigation for images/slideshows''twentyten' ),
            
    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
            
    'after_widget' => '</li>',
            
    'before_title' => '<h3 class="widget-title">',
            
    'after_title' => '</h3>',
        ) );


        
    // Area 7, located in the header, replacing the menu.
        
    register_sidebar( array(
            
    'name' => __'Menu Area Widget Area''twentyten' ),
            
    'id' => 'menu-area-widget-area',
            
    'description' => __'Replaces the standard Nav Menu With a Widget Area''twentyten' ),
            
    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
            
    'after_widget' => '</li>',
            
    'before_title' => '<h3 class="widget-title">',
            
    'after_title' => '</h3>',
        ) );


        
    // Area 1, located at the top of the sidebar.
        
    register_sidebar( array(
            
    'name' => __'Primary Widget Area''americanindustrial' ),
            
    'id' => 'primary-widget-area',
            
    'description' => __'The primary widget area''americanindustrial' ),
            
    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
            
    'after_widget' => '</li>',
            
    'before_title' => '<h3 class="widget-title">',
            
    'after_title' => '</h3>',
        ) );

        
    // Area 2, located below the Primary Widget Area in the sidebar. Empty by default.
        
    register_sidebar( array(
            
    'name' => __'Secondary Widget Area''americanindustrial' ),
            
    'id' => 'secondary-widget-area',
            
    'description' => __'The secondary widget area''americanindustrial' ),
            
    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
            
    'after_widget' => '</li>',
            
    'before_title' => '<h3 class="widget-title">',
            
    'after_title' => '</h3>',
        ) );

        
    // Area 3, located in the footer. Empty by default.
        
    register_sidebar( array(
            
    'name' => __'First Footer Widget Area''americanindustrial' ),
            
    'id' => 'first-footer-widget-area',
            
    'description' => __'The first footer widget area''americanindustrial' ),
            
    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
            
    'after_widget' => '</li>',
            
    'before_title' => '<h3 class="widget-title">',
            
    'after_title' => '</h3>',
        ) );

        
    // Area 4, located in the footer. Empty by default.
        
    register_sidebar( array(
            
    'name' => __'Second Footer Widget Area''americanindustrial' ),
            
    'id' => 'second-footer-widget-area',
            
    'description' => __'The second footer widget area''americanindustrial' ),
            
    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
            
    'after_widget' => '</li>',
            
    'before_title' => '<h3 class="widget-title">',
            
    'after_title' => '</h3>',
        ) );

        
    // Area 5, located in the footer. Empty by default.
        
    register_sidebar( array(
            
    'name' => __'Third Footer Widget Area''americanindustrial' ),
            
    'id' => 'third-footer-widget-area',
            
    'description' => __'The third footer widget area''americanindustrial' ),
            
    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
            
    'after_widget' => '</li>',
            
    'before_title' => '<h3 class="widget-title">',
            
    'after_title' => '</h3>',
        ) );

        
    // Area 6, located in the footer. Empty by default.
        
    register_sidebar( array(
            
    'name' => __'Fourth Footer Widget Area''americanindustrial' ),
            
    'id' => 'fourth-footer-widget-area',
            
    'description' => __'The fourth footer widget area''americanindustrial' ),
            
    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
            
    'after_widget' => '</li>',
            
    'before_title' => '<h3 class="widget-title">',
            
    'after_title' => '</h3>',
        ) );

        
    }
    /** Register sidebars by running americanindustrial_widgets_init() on the widgets_init hook. */
    add_action'widgets_init''americanindustrial_widgets_init' );


  •  
    Page 1 of 2 12 LastLast

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •