npa
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Ajax Mini Cart] Adding product variables in Ajax Mini CartHello? Anybody?
Forum: Themes and Templates
In reply to: Problems With Widget Placement in FooterUPDATE: Finally got the CSS properties to the theme’s specification. They are as follows:
#subfooter { width:910px; overflow: hidden; margin-left:auto; margin-right:auto; height:auto; background: url(images/black-1.png); clear:both; } .FooterLeft { width: 220px; float: left; padding: 2px; } .FooterRight { width: 220px; float: left; padding: 2px; } .FooterCenter { width: 220px; float: left; padding: 2px; } .FooterExtremeRight { width: 220px; float: left; padding: 2px; } #subfooter .FooterLeft .widget { margin-bottom: 10px; float: left; width: 205px; display: block; position: relative; } #subfooter .FooterCenter .widget { margin-bottom: 10px; float: left; width: 205px; display: block; } #subfooter .FooterRight .widget { margin-bottom: 10px; float: left; width: 205px; display: block; } #subfooter .FooterExtremeRight .widget { margin-bottom: 10px; float: left; width: 205px; display: block; } #subfooter ul { list-style-type: none; margin: 0; padding: 0; } #subfooter ul li { list-style-type: circle; margin: 0px 0px 2px 25px; padding: 1px 0px 0px 0px; } #subfooter ul li a { font-size: 10px; } #subfooter .alignright { float: right; margin-left: 10px; margin-right: 2px;} .aligncenter { margin-right: auto; margin-left: auto; } .alignleft { float: left; margin-right: 10px; margin-left:2px;}
Forum: Themes and Templates
In reply to: Problems With Widget Placement in FooterUPDATE:
I used the code that you provided, customized it and it worked! It gave me the error message the but stopped doing so after the second time. This is what it looks like:
FOOTER
<div id="footer"> <div class="navbar-top"> </div> <div class="clear"></div> <?php wp_footer(); ?> <div id="subfooter"> <div class="FooterLeft"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('FooterLeft') ) : ?> <?php endif; ?> </div> <div class="FooterCenter"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('FooterCenter') ) : ?> <?php endif; ?> </div> <div class="FooterRight"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('FooterRight') ) : ?> <?php endif; ?> </div> <div class="FooterExtremeRight"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('FooterExtremeRight') ) : ?> <?php endif; ?> </div> </div> <div id="footer_bg"> <div id="footer"> <div class="footer-mid"> © <?php the_time('Y');?> <a href="<?php bloginfo('siteurl'); ?>"><?php bloginfo('title'); ?></a>. Design by <a href="https://ftlthemes.forthelose.org">Ralph Damiano</a>.<br /> This free theme is sponsored by <a href="https://www.edubook.com/">Online Article Publishing</a> and <a href="https://edu.udym.com/tips-for-a-bridesmaid-in-giving-a-wedding-speech/">Bridesmaid Speeches</a>. </div> <div class="navbar-bottom"> </div> </div> </div> </body> </html>
Note: the nav top and bottom div classes are rounded cornered elements that contain the footer with a transparent black bg like the theme in the CSS code.
I had issues with the footer_extreme_right column always showing up in the footer_right column but I thinks it’s got to do with CSS properties, which I’m currently trying to work out.
Other then that, THANK YOU T.L.L. AND Ishan001, It’s not everyday that people are willing to help one another. I’ll check back to see how yours turned out.
FUNCTION:
<?php
if ( function_exists(‘register_sidebar’) )
register_sidebar(array(
‘name’ => ‘sidebar’,
‘before_widget’ => ‘<div class=”sidebar-box”><div class=”sidebar-top”></div><div class=”sidebar-middle”>’,
‘after_widget’ => ‘</div><div class=”sidebar-bottom”></div></div>’,
‘before_title’ => ‘<h1>’,
‘after_title’ => ‘</h1>’,
));
if ( function_exists(‘register_sidebar’) )
register_sidebar(array(‘name’=>’FooterLeft’,’before_widget’ => ‘<div class=”widget”>’,’after_widget’ => ‘</div>’,’before_title’ => ‘<h2>’,’after_title’ => ‘</h2>’,));
if ( function_exists(‘register_sidebar’) )
register_sidebar(array(‘name’=>’FooterCenter’,’before_widget’ => ‘<div class=”widget”>’,’after_widget’ => ‘</div>’,’before_title’ => ‘<h2>’,’after_title’ => ‘</h2>’,));
if ( function_exists(‘register_sidebar’) )
register_sidebar(array(‘name’=>’FooterRight’,’before_widget’ => ‘<div class=”widget”>’,’after_widget’ => ‘</div>’,’before_title’ => ‘<h2>’,’after_title’ => ‘</h2>’,));
if ( function_exists(‘register_sidebar’) )
register_sidebar(array(‘name’=>’FooterExtremeRight’,’before_widget’ => ‘<div class=”widget”>’,’after_widget’ => ‘</div>’,’before_title’ => ‘<h2>’,’after_title’ => ‘</h2>’,));
?>Forum: Themes and Templates
In reply to: Problems With Widget Placement in FooterThank you Living Legend, I look forward to the solution. Much appreciated. I’m going to try the code above.
Forum: Themes and Templates
In reply to: Problems With Widget Placement in FooterHi there The Living Legend, thanks for responding to my question, much appreciated!
To answer your question yes all the codes were implemented on all three php files as is except for the functions code, where the reference to the Article_Sidebar was removed. And is as follows:
FUNCTIONS.PHP
<?php
if ( function_exists(‘register_sidebar’) )
register_sidebar(array(
‘name’ => ‘sidebar’,
‘before_widget’ => ‘<div class=”sidebar-box”><div class=”sidebar-top”></div><div class=”sidebar-middle”>’,
‘after_widget’ => ‘</div><div class=”sidebar-bottom”></div></div>’,
‘before_title’ => ‘<h1>’,
‘after_title’ => ‘</h1>’,
));if ( function_exists(‘register_sidebar’) )
register_sidebar(array(‘name’=>’FooterLeft’,’before_widget’ => ‘<div class=”widget”>’,’after_widget’ => ‘</div>’,’before_title’ => ‘<h2>’,’after_title’ => ‘</h2>’,));
if ( function_exists(‘register_sidebar’) )
register_sidebar(array(‘name’=>’FooterCenter’,’before_widget’ => ‘<div class=”widget”>’,’after_widget’ => ‘</div>’,’before_title’ => ‘<h2>’,’after_title’ => ‘</h2>’,));
if ( function_exists(‘register_sidebar’) )
register_sidebar(array(‘name’=>’FooterRight’,’before_widget’ => ‘<div class=”widget”>’,’after_widget’ => ‘</div>’,’before_title’ => ‘<h2>’,’after_title’ => ‘</h2>’,));
if ( function_exists(‘register_sidebar’) )
register_sidebar(array(‘name’=>’FooterExtremeRight’,’before_widget’ => ‘<div class=”widget”>’,’after_widget’ => ‘</div>’,’before_title’ => ‘<h2>’,’after_title’ => ‘</h2>’,));?>
And the footer was implemented as such:<div id=”footer”>
<div class=”navbar-top”>
</div><div id=”subfooter”>
<div class=”FooterLeft”>
<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘FooterLeft’) ) : ?>
<?php endif; ?>
</div><div class=”FooterCenter”>
<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘FooterCenter’) ) : ?> <?php endif; ?>
</div><div class=”FooterRight”>
<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘FooterRight’) ) : ?>
<?php endif; ?>
</div><div class=”FooterExtremeRight”>
<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘FooterExtremeRight’) ) : ?>
<?php endif; ?>
</div></div>
<div class=”footer-mid”>
? <?php the_time(‘Y’);?> “><?php bloginfo(‘title’); ?>. Design by Ralph Damiano.
This free theme is sponsored by Online Article Publishing and Bridesmaid Speeches.
</div>
<div class=”navbar-bottom”>
</div>
</div>
</div>
<?php wp_footer(); ?>
</body>
</html><!–End Footer–>
Safe Mode is off and the actual error message is as follows:
Warning: Cannot modify header information – headers already sent by (output started at /home/public_html/wp-content/themes/Skin/functions.php:22) in /home/public_html/wp-admin/theme-editor.php on line 70
Maybe it’s got something to do with the sidebarphp. below, or something I’m doing wrong with placement of the codes. ????
SIDEBAR.PHP
<div id=”sidebar”>
<!– TABS–> <?php include (TEMPLATEPATH . ‘/tab-code.txt’);?> <!– /TABS–>
<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(“sidebar”) ) : ?>
<div class=”sidebar-box”>
<div class=”sidebar-top”>
</div>
<div class=”sidebar-middle”>
<h1>Widgetized Sidebar</h1>- Don’t forget, this sidebar is widgetized.
- You can add whatever you like here from the Design > Widgets tab.
- Don’t worry about this message.
- It’ll go away once you have at least one widget.
</div>
<div class=”sidebar-bottom”>
</div>
</div>
<?php endif; ?>
</div><!– End SIDEBAR –>
<div class=”clear”></div>
</div> <!– End MAIN –>
<!– /sidebar –>Thanks in advance.
Forum: Themes and Templates
In reply to: Problems With Widget Placement in FooterHi ishan001, I have a problem with the code, wondering if you can help. It works but every time I go to update or save the changes in wordpress I get this error message ( Warning: Cannot modify header information – headers already sent by….. /pluggable.php on line 850 ) Now I’m able to save my changes but I always get this error message. I am using the Jynxed Theme and the function code goes something like this…
This is the Function.php:
<?php
if ( function_exists(‘register_sidebar’) )
register_sidebar(array(
‘name’ => ‘sidebar’,
‘before_widget’ => ‘<div class=”sidebar-box”><div class=”sidebar-top”></div><div class=”sidebar-middle”>’,
‘after_widget’ => ‘</div><div class=”sidebar-bottom”></div></div>’,
‘before_title’ => ‘<h1>’,
‘after_title’ => ‘</h1>’,
));
?>This is the Footer:
<div id=”footer”>
<div class=”navbar-top”>
</div>
<div class=”footer-mid”>
© <?php the_time(‘Y’);?> “><?php bloginfo(‘title’); ?>. Design by Ralph Damiano.
This free theme is sponsored by Online Article Publishing and Bridesmaid Speeches.
</div>
<div class=”navbar-bottom”>
</div>
</div>
</div>
<?php wp_footer(); ?>
</body>
</html>I’m new to coding wondering if you can help me out.
Thanks