Add to and change second sidebar
-
Hi
I want to add a picture or a gif in the second sidebar(sidebar on the right side), but I’m having trouble finding where I would do so
Thanks
-
Hi Ghettotoddy. Welcome to the Hueman forum. The right sidebar is named “Secondary” in Appearance > Widgets.
Thanks. I found the location, but I’m still having trouble seeing how to add a jpg, png or gif there. I’m using this theme for a school assignement, and I want to us the second sidebar as a “adds collumn”. So I allso want to rename the tab from “more” to “adds”.
Thanks
Here’s a good reference for adding an image to your sidebar:
http://www.wpbeginner.com/beginners-guide/how-to-add-an-image-in-wordpress-sidebar-widget/To change the heading on the sidebar you have a couple of options. Both utilize a child theme. If you’re not currently using a child theme here’s how to download one from within the theme:
1. In Theme Options click the Help tab in the upper righthand corner.
2. One of the options in the list is to download a sample child theme. This downloads the theme zip file to your local computer.
3. Install the new theme in your Admin panel by selecting Add New > Upload Theme > Choose File, then select the zip file you downloaded.
4. Activate the child theme.
You’ll now have a pre-configured child theme with a style.css file and functions.php file to which you can add customizations.Option 1
1. Copy the sidebar-2.php file from the parent theme to your child theme.2. Find this line in the middle of the file:
<p><?php _e('More','hueman'); ?></p>and change it to this:
<p><?php _e('adds','hueman'); ?></p>3. Save the file and you’re done.
Option 2
Add this function to your child theme functions.php file:/* ------ Change selected text ------ */ add_filter( 'gettext', 'my_new_text', 20, 3 ); function my_new_text( $translated_text, $text, $domain ) { switch ( $translated_text ) { case 'More' : $translated_text = __( 'adds', 'hueman' ); } return $translated_text; }Let me know if you have any questions.
The topic ‘Add to and change second sidebar’ is closed to new replies.
