2 questions:
1. When I click from the home page to a different page the whole lot moves a little.
2. More importantly when I select a category the categories column jumps to the left.
Any advice to keep things from moving around would be much appreciated.
Thanks
]]>/**
* Creates multiple sidebars.
*
* If you wanted to quickly create multiple sidebars for a theme or internally.
* This function will allow you to do so. If you don’t pass the ‘name’ and/or
* ‘id’ in $args, then they will be built for you.
*
* The default for the name is “Sidebar #”, with ‘#’ being replaced with the
* number the sidebar is currently when greater than one. If first sidebar, the
* name will be just “Sidebar”. The default for id is “sidebar-” followed by the
* number the sidebar creation is currently at. If the id is provided, and mutliple
* sidebars are being defined, the id will have “-2” appended, and so on.
*
* @since 2.2.0
*
* @see register_sidebar() The second parameter is documented by register_sidebar() and is the same here.
* @uses parse_str() Converts a string to an array to be used in the rest of the function.
* @uses register_sidebar() Sends single sidebar information [name, id] to this
* function to handle building the sidebar.
*
* @param int $number Number of sidebars to create.
* @param string|array $args Builds Sidebar based off of ‘name’ and ‘id’ values.
*/
function register_sidebars($number = 4, $args = array()) {
global $wp_registered_sidebars;
$number = (int) $number;
if ( is_string($args) )
parse_str($args, $args);
for ( $i = 1; $i <= $number; $i++ ) {
$_args = $args;
if ( $number > 1 )
$_args[‘name’] = isset($args[‘name’]) ? sprintf($args[‘name’], $i) : sprintf(__(‘Sidebar %d’), $i);
else
$_args[‘name’] = isset($args[‘name’]) ? $args[‘name’] : __(‘Sidebar’);
// Custom specified ID’s are suffixed if they exist already.
// Automatically generated sidebar names need to be suffixed regardless starting at -0
if ( isset($args[‘id’]) ) {
$_args[‘id’] = $args[‘id’];
$n = 2; // Start at -2 for conflicting custom ID’s
while ( isset($wp_registered_sidebars[$_args[‘id’]]) )
$_args[‘id’] = $args[‘id’] . ‘-‘ . $n++;
} else {
$n = count($wp_registered_sidebars);
do {
$_args[‘id’] = ‘sidebar-‘ . ++$n;
} while ( isset($wp_registered_sidebars[$_args[‘id’]]) );
}
register_sidebar($_args);
}
}
/**
* Builds the definition for a single sidebar and returns the ID.
*
* The $args parameter takes either a string or an array with ‘name’ and ‘id’
* contained in either usage. It will be noted that the values will be applied
* to all sidebars, so if creating more than one, it will be advised to allow
* for WordPress to create the defaults for you.
*
* Example for string would be 'name=whatever;id=whatever1'
and for
* the array it would be array(
.
* 'name' => 'whatever',
* 'id' => 'whatever1')
*
* name – The name of the sidebar, which presumably the title which will be
* displayed.
* id – The unique identifier by which the sidebar will be called by.
* before_widget – The content that will prepended to the widgets when they are
* displayed.
* after_widget – The content that will be appended to the widgets when they are
* displayed.
* before_title – The content that will be prepended to the title when displayed.
* after_title – the content that will be appended to the title when displayed.
*
* Content is assumed to be HTML and should be formatted as such, but
* doesn’t have to be.
*
* @since 2.2.0
* @uses $wp_registered_sidebars Stores the new sidebar in this array by sidebar ID.
*
* @param string|array $args Builds Sidebar based off of ‘name’ and ‘id’ values
* @return string The sidebar id that was added.
*/
function register_sidebar($args = array()) {
global $wp_registered_sidebars;
$i = count($wp_registered_sidebars) + 1;
$defaults = array(
‘name’ => sprintf(__(‘Sidebar %d’), $i ),
‘id’ => “sidebar-$i”,
‘description’ => ”,
‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’,
‘after_widget’ => “\n”,
‘before_title’ => ‘<h2 class=”widgettitle”>’,
‘after_title’ => “</h2>\n”,
);
$sidebar = wp_parse_args( $args, $defaults );
$wp_registered_sidebars[$sidebar[‘id’]] = $sidebar;
add_theme_support(‘widgets’);
do_action( ‘register_sidebar’, $sidebar );
return $sidebar[‘id’];
}
Any help will be appreciated.
I am using Modern Clix theme on my website: www.onurkir.com.
I am quite happy with the theme. However I would like to get rid of the left sidebar where date added, category and # comments of the post are displayed. I am not totally beginner to the html, php stuff, but I couldn’s make this.
Can anyone help how to solve this?
]]>The problem I am having with the Modern Clix theme is that my images disappear into the sidebar. On the Modern Clix theme homepage the author states that images up to 596px wide but I’m finding I have to make the images much smaller to fit without overflowing and disappearing into the sidebar. You can see the problem here.
I’ve tried editing the image alignment (align left, right, center, tried them all) and the only thing working for me is to shrink the image width way smaller than 596px.
I know the author states he is releasing a new and improved theme but that doesn’t help in the meantime. Can anyone help with how to get the images to float left, in the same way it is on the theme/author’s homepage?
Thanks
]]>My blog post titles, particuarly long ones, are cut off and I wondering how to fix it.
For example: If my blog title was:
“Markets Slump as Euro Falls and Greece Jitters Return”
It turns into two lines but cuts off some words (“Falls and” would be missing) and looks like this:
“Markets Slump as Euro
Greece Jitters Return”
I tried looking at my stylesheet but I’m confused as to which section I should edit, if this is a margin or width problem. Any support is greatly appreciated. Thanks!
Here is the stylesheet.
[CSS moderated as per the Forum Rules. Please post a link to your site instead.]
]]>This theme appears to mainly run off of hand coding, which is not my strength at all however I do have a very rough understanding of it. If there is a bit of code anyone could give me and tell me what php to insert it into, that’d be fantastic…
Thanks!
]]>https://www.prioryofzion.co.uk
i would like to add an image to the header section at the top which looks a bit bare, retaining the text with the image behind it, further more would it be possible to have a selection of images, which could be rotated through?
thanks for any help.
]]>I’ve created a custom header image in the header.php file, and this shows up on the homepage ok, but when I view a single page or a single post, the image placeholders load in, then disappear and are replaced with”home” in text.
I also have the pixopoint navigation plugin running. I tried deactivating this to see if it was causing the problem but nothing changed.
]]>