I am using wordpress Twenty Sixteen to build a website. When I open the website in a tablet, it will show a collapsed menu as shown. How can I change the name "Menu" to other words else?
Thanks for any kind help.
Step 1 Login to your website Cpanel or local host what you are using currently.
Step 2 Open you WordPress directory wp-content-> themes->twintlysexteen->header.php
Step 3 In your header.php find the class="menu-toggle" which will look like below
<button id="menu-toggle" class="menu-toggle"><?php _e( 'Menu', 'twentysixteen' ); ?></button>
Step 4 change the word menu instead what you want to use I have used SOMETHING ELSE. Look at the screenshot http://prntscr.com/fkrz5z
That's great that you are starting to customize Wordpress! I would start by searching the Wordpress Forums first before you come here. Twenty Sixteen has good help at the TwentySixteen forum, linked here: https://wordpress.org/support/theme/twentysixteen
However, to answer your question... You need to change the button tag: with id="menu-toggle". To do this you need to customize the theme, which is best done using a child theme: https://codex.wordpress.org/Child_Themes
The customization will occur in the following line of the file header.php:
<button id="menu-toggle" class="menu-toggle"><?php _e( 'Menu', 'twentysixteen' ); ?></button>
In the above code, the string: 'Menu' refers to the string that is the text displayed that you want to change, and you just edit that string to be the text you want, and save your file. Edits can be done in Wordpress UI editor or through accessing your files in another way. If you edit header.php be sure to do it in a child theme as suggested above, or else when you update your theme, you will lose all your customizations.
Related
I'm really new in coding, especially in css. I already read some tutorials but I like to change a specific thing. For my Website I use Wordpress. I also edited a few things in my CSS which already worked. Now I can't find a answer for how I can replace the title with a custom picture.
Click here to watch a picture to understand what I mean.
Click here to acess my website.
I already tried some things, but it would be nice if someone can explain me how to do it.
You can edit header.php in the twenty seventeen to display only a picture.
This source code is on your wordpress server in wp-content/themes/twenty-seventeen/header.php: https://github.com/WordPress/twentyseventeen/blob/master/header.php
You'll want to replace line 31:
<?php get_template_part( 'components/header/header', 'image' ); ?>
With something like
<img src="banner.png" />
You'll have to adjust the location of banner.png to where you actually upload the image.
After you've got that working and it's basically what you want, you can wrap the image tag in a a tag so the banner links back to your home page, if you'd like.
I have installed Ajaxify theme on my site (tekstyleankara.com). At the head of the it writes website's name on red background. I want to put the logo of the company there. How can I do that? Thanks.
I think I need to edit this line in header.php :
<div class="logo grid_2">
<h1 class="site-title"><?php bloginfo( 'name' ); ?></h1>
</div>
But I couldn't find out what I should write instead. I made several attempts but they didn't work.
For this you need to edit your stylesheet Theme.css file. To find this file you need to go to your admin panel of wordpress. There you can click appearance at the right side of your page and click on the editor. There you see the file theme.css. You need to edit it and search the line .logo. From there you can change your red background with your logo.
I'm quite new to word press, and web development in general.
I am trying to remove the "powered by wordpress" and the wordpress logo from the bottom of my page, is there a way to do that?
I'm using twenty ten scheme.
Kind Regards
For Twenty Eleven, you can remove the code directly by going to: Appearance > Editor, then edit the Footer.php file and remove the line:
<?php printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); ?>
This will get overwritten the next time you update the theme. You can hide the whole credits block by editing you style.css and adding the line:
#site-generator { display: none; }
This will probably also get overwritten the next time you update your theme. Here is a more detailed explanation of the above for the twentyten theme.
i have to create a customized wordpress theme.
i still don't how it should look like, so viewed the twenty ten theme files to figured out what i could customize.
so i searched for the menu build function in the header.php file and found this
<?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
but i cant figure out what this function does...where is written how the menu is created with html tags like <ul>, <li> and so on...
i wan't to edit the html code!
regards,
peter
Check out the documentation for wp_nav_menu in the codex. It's a menu system added to WordPress back at version 2.9 (I believe). If you navigate in your dashboard to Appearance -> Menus, you can customize it through an interface. In Twenty Ten, the fallback is wp_page_menu, which displays a list of your pages. Should you prefer to build yours by hand and hard code it into the theme (not advisable, but possible) just delete the relevant code and replace it with your own HTML.
My adviice is to look into the Menu interface, create a menu, assign it to the theme position 'primary', and go from there with a properly configurable and WP-driven menu.
I coudn't find the php that generates that or do I have to deactivate it from the Site admin?
You'll need to use your own callback for wp_list_comments() - check out Twenty Ten's comment callback twentyten_comment() as an example.
You'll see a line something along the lines of;
<?php if ( $comment->comment_approved == '0' ) : ?>
<em><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em>
<br />
<?php endif; ?>
You could pretty much copy and paste twentyten_comment() into your own theme, removing the block of code above, and then using wp_list_comments('callback=my_comment_callback') in comments.php.
Easiest way without cracking the code or bothering with a child theme is to hide it using css. In the theme I'm looking at now, that text is in a span tag assigned to the class "comment-await"
<span class="comment-await">Your comment is awaiting moderation.</span>
Most themes now offer a custom css option in the Customize section, so:
span.comment-await{display:none;}
You can play with changing the text by using css before or after selectors. Of course, you only want to do this for little changes, It it gets extensive the right way is to create a child theme and override the theme by editing comments.php (or other relevant file)
Download and Install Notepad++.
Open Notepad++
Hit "Ctrl-F" to get a Find dialog.
Change to the Find in Files tab ("Ctrl-Shift-F" might shortcut you here).
Change the filter to *.php
Change the location to your wordpress folder
Ensure you have Search in Subdirectories enabled.
Search for "Your comment is awaiting"