prakin
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: How do I add this to end of each post?Thanks. I finally got it just right. Had to work with it a bit, but I am happy with the result. Thanks for directing me!
Forum: Developing with WordPress
In reply to: How do I add this to end of each post?Ok. Just to be clear, I can do this?
$content .= '<div class="featureemail"></div>';
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Jetpack Sharing not workingOk. I have changed them to the round icons. You will notice that I have added CSS to alter the color, however they respond the same way even with the CSS removed. Just an FYI. ??
Forum: Fixing WordPress
In reply to: CSS Stylesheet no longer workingWell,I figured it out. I think there must be some sort of cosmic joke on me, because every time I post a problem that’s when I finally figure it out. lol
I just cswitched from @import to enqueue, and then had to change from my child theme to another theme. When I went back it started working. Go figure.
Forum: Fixing WordPress
In reply to: CSS Stylesheet no longer workingmy child theme style.css is not loading at all. It doesn’t appear when I inspect the element (head).
Forum: Fixing WordPress
In reply to: CSS Stylesheet no longer workingSorry. that was a typo. It is not inside the comments. but I am looking closer and think that maybe there is something wrong with my template name???
/* Theme Name:Sela Theme Child Theme URI: https://www.queenbeeofhoneydos.com Template: selatheme-child Description: This is a child theme of Sela Author: Rachel Lynn Author URI: https://www.queenbeeofhoneydos.com Version: 1.0.0 */ @import url("../sela/style.css");
I also have my child theme folder name exactly like that (selatheme-child). But I was thinking for some reason that the template before just said “sela” But when I change it to that, I get a broken message at the top. You know, the one that says “please install the sela theme”
Forum: Themes and Templates
In reply to: [Sela] Add Footer WidgetOk I finally figured this out. Thanks David for trying to help, but if anyone else has the Sela theme and are wanting to change your 3 footer widgets to 5, this is how I did it for my blog
I created a sidebar-footer.php in my child theme and placed these pieces of code in it:
<?php /** * The sidebar containing the footer page widget areas. * * If no active widgets in either sidebar, they will be hidden completely. * * Sela Theme child */ if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) && ! is_active_sidebar( 'sidebar-4' ) && ! is_active_sidebar( 'sidebar-8' ) && ! is_active_sidebar( 'sidebar-9' )) { return; } ?> <div id="tertiary" class="widget-area footer-widget-area" role="complementary"> <?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?> <div id="widget-area-2" class="widget-area"> <?php dynamic_sidebar( 'sidebar-2' ); ?> </div><!-- #widget-area-2 --> <?php endif; ?> <?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?> <div id="widget-area-3" class="widget-area"> <?php dynamic_sidebar( 'sidebar-3' ); ?> </div><!-- #widget-area-3 --> <?php endif; ?> <?php if ( is_active_sidebar( 'sidebar-4' ) ) : ?> <div id="widget-area-4" class="widget-area"> <?php dynamic_sidebar( 'sidebar-4' ); ?> </div><!-- #widget-area-4 --> <?php endif; ?> <?php if ( is_active_sidebar( 'sidebar-8' ) ) : ?> <div id="widget-area-8" class="widget-area"> <?php dynamic_sidebar( 'sidebar-8' ); ?> </div><!-- #widget-area-8 --> <?php endif; ?> <?php if ( is_active_sidebar( 'sidebar-9' ) ) : ?> <div id="widget-area-9" class="widget-area"> <?php dynamic_sidebar( 'sidebar-9' ); ?> </div><!-- #widget-area-9 --> <?php endif; ?> </div><!-- #tertiary -->
This is basically the same as the Sela sidebar-footer.php with the addition of sidebar-8 and sidebar-9.
In my functions.php (child theme), I added the registration for these with this code:
/** * Register widgetized area and update sidebar with default widgets. */ function selachild_widgets_init() { register_sidebar( array( 'name' => __( 'Forth Footer Widget Area', 'sela' ), 'id' => 'sidebar-8', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); register_sidebar( array( 'name' => __( 'Fifth Footer Widget Area', 'sela' ), 'id' => 'sidebar-9', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); } add_action( 'widgets_init', 'selachild_widgets_init' );
(* Note above- If copying and pasting from the original function.php and then making changes, make sure you add “child” behind the word “sela” or else it will cause the white page of death. Notice how I added child at the top and bottom of this piece of code.)
I also had to do some work on my CSS to get it to look the way that I have it. I am not including that right now, because I am pretty sure that my code is duplicated in a few areas and overriding itself in a few others. I still have to go back and clean it up a bit. Originally, the above codes gave me all 5 footer widgets, but they were shoved to the left with 3 having the current font and the 2 new widgets having whatever Sela had originally set them to. Hope this helps anyone looking to add footer widgets to their Sela theme though.
Cheery-oh!Forum: Themes and Templates
In reply to: [Sela] Add Footer WidgetWell, I figured out why it was where the problem was with my code. It was because “sidebar 5” and “sidebar 6” had already been used for another sidebar widget. I had a total of 7 widgets registered. So, once I changed the new additions to “8” and “9” they appeared in my dashboard.
Now, I just can’t seem to get them to align correctly. When I add text to the new additional footer widgets, everything gets shoved to the left side of the screen. Also the font is not coming out the same for the new widgets. grrr!
Forum: Themes and Templates
In reply to: [Sela] Add Footer WidgetUpdate: I have tried creating a sidebar-footer.php file in the child theme with the following code:
if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) && ! is_active_sidebar( 'sidebar-4' ) && ! is_active_sidebar( 'sidebar-5’ ) && ! is_active_sidebar( 'sidebar-6’ )) { return; } ?> <div id="tertiary" class="widget-area footer-widget-area" role="complementary"> <?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?> <div id="widget-area-2" class="widget-area"> <?php dynamic_sidebar( 'sidebar-2' ); ?> </div><!-- #widget-area-2 --> <?php endif; ?> <?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?> <div id="widget-area-3" class="widget-area"> <?php dynamic_sidebar( 'sidebar-3' ); ?> </div><!-- #widget-area-3 --> <?php endif; ?> <?php if ( is_active_sidebar( 'sidebar-4' ) ) : ?> <div id="widget-area-4" class="widget-area"> <?php dynamic_sidebar( 'sidebar-4' ); ?> </div><!-- #widget-area-4 --> <?php endif; ?> <?php if ( is_active_sidebar( 'sidebar-5’ ) ) : ?> <div id="widget-area-5” class="widget-area"> <?php dynamic_sidebar( 'sidebar-5’ ); ?> </div><!-- #widget-area-5 --> <?php endif; ?> <?php if ( is_active_sidebar( 'sidebar-6’ ) ) : ?> <div id="widget-area-6” class="widget-area"> <?php dynamic_sidebar( 'sidebar-6’ ); ?> </div><!-- #widget-area-6 --> <?php endif; ?> </div><!-- #tertiary -->
This code alone took away my current 3 widget and my footer.
So, I then tried adding this code to the child functions.php file to register the two new widgets, thinking that would put everything back correctly. However, Adding this code causes my blog to go to white out.
/** * Register widgetized area and update sidebar with default widgets. */ function sela_widgets_init() { register_sidebar( array( 'name' => __( 'Main Sidebar', 'sela' ), 'id' => 'sidebar-1', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); register_sidebar( array( 'name' => __( 'First Footer Widget Area', 'sela' ), 'id' => 'sidebar-2', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); register_sidebar( array( 'name' => __( 'Second Footer Widget Area', 'sela' ), 'id' => 'sidebar-3', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); register_sidebar( array( 'name' => __( 'Third Footer Widget Area', 'sela' ), 'id' => 'sidebar-4', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', register_sidebar( array( 'name' => __( 'Fourth Footer Widget Area', 'sela' ), 'id' => 'sidebar-5', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); register_sidebar( array( 'name' => __( 'Fifth Footer Widget Area', 'sela' ), 'id' => 'sidebar-6', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); register_sidebar( array( 'name' => __( 'First Front Page Widget Area', 'sela' ), 'id' => 'sidebar-5', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); } add_action( 'widgets_init', 'sela_widgets_init' );
What am I doing wrong?
Forum: Fixing WordPress
In reply to: Help me fix mobile viewing! Messed up after changing sidebarWell, don’t I feel stupid. ?? I knew that. (sort of)
Thanks Gary. I would have been beating myself up all night before I figured it out. Seems like it’s always something simple.Forum: Fixing WordPress
In reply to: Help! Amazon Ads cut off on the right!Oops. Sorry about that. I thought I had inserted it.
It is
www.queenbeeofhoneydos.com
But I think I found the problem. I was changing the css in my child theme, but somewhere in time I had add a 100px right margin to the .text widget in the CSS editor. So the one was overriding the other.
I will check the 300px x 300px and see if they work now, too.
Forum: Fixing WordPress
In reply to: new php file not showing up in child themeThanks! Changed the name and also noticed that my other files have 2 forward slashes before the first asterisk. Not sure which one did the trick (or both), but I see it now!
Forum: Fixing WordPress
In reply to: new php file not showing up in child themeI tried doing that, but I am not seeing an Archives in the drop down attributes.
It still just has:default page
front page
full width page
grid pageI assumed this was because the child theme is not showing the php file for the new template.
FYI I read through all of those codex pages before posting here. I know it must be something simple, I just can’t figure it out.Just to be clear, these are the steps that I took.
Open Bluehost, create new file in child themes folder named page archives.php
copy code from above, save.
Go to blog, click appearance, click editor, look for file in child theme (not there).Forum: Fixing WordPress
In reply to: Manage download access with Mail chimpI have mail chimp but do not use the plugin for WordPress. I currently just use the embed code from mail chimp for my blog. I try to not use any more plugins than in necessary. Would I need to install the mail chimp plugin in order to get the Download Monitor to function on my page? I haven’t had a chance to check this out yet, but I am about to.
Forum: Fixing WordPress
In reply to: widget image alignmentThanks. I guess I had a blonde moment. lol
I was using .textwidget without the #text-7 and kept messing up my footers. lol
My only excuse it that it was late, as I should have caught the mistake myself. However, you have gotten me back on track. Everything is looking good now.i already have jetpack’s css editor and a child theme, but thanks for the suggestion for the plugin.