I don’t know how to put a placeholder [closed]

Use this code in your functions.php function wpb_change_title_text( $title ){ $screen = get_current_screen(); if ( ‘post’ == $screen->post_type ) { $title=”Post Title”; } return $title; } add_filter( ‘enter_title_here’, ‘wpb_change_title_text’ ); The above code will Place “Post Title” as placeholder text in dashboard -> posts -> Add New. Replace that text with your text and also … Read more

Section Background Images?

You need to modify your theme pages to support this change. If you already have a background in place you can modify it on a per post basis using the technics describe in that post. This plugin Custom CSS per post in WordPress is a good example at setting custom css per page. The pro … Read more

An unexpected error occurred when add theme

Probably an error caused by trying to install it from the zip file. If it’s in localhost try to unzip it and move the folder yourself to: yoursite/wp-content/themes/NEWTHEME And then try to switch to it from the wp-admin dashboard.

Unable to find translations in WordPress theme

There are three usual possibilities: Translation files somewhere in theme’s directory. Translation files in site’s directory, defined by WP_LANG_DIR constant (typically wp-content/languages). Theme’s original strings are in different language, so that is its default state and it needs to be translated to English.

Installing a theme on localhost, Ubuntu 16.04

The directory /wp-content/ of your local installations needs permission to create directory. It is necessary to upload the package and unpack. rights Maybe this should helps, if the user is www-data. chown -R :www-data /var/www/html/wordpress/wp-content/uploads chown -R :www-data /var/www/html/wordpress/wp-content/upgrades Or full access to the wp-content directory sudo chmod -R 777 wp-content/ php.ini Also maybe the … Read more

Show hyperlinks only when user is loggedin

you can use the_content filter hook to replace the hyperlink with login url. following snippet should do the trick. Update: this function should check if the user is logged in or not (my bad i forgot to add that) add_action( “the_content”, “restrict_url_in_post_content” ); function restrict_url_in_post_content() { $loginUrl = sprintf( ‘<a href=”https://wordpress.stackexchange.com/questions/251965/%s” class=”some-class”>%s</a>’, wp_login_url( get_the_permalink() ), … Read more

Changing an image in header.php

Yes it is. You have 2 choices: Option 1 Use an FTP manager such as FileZilla, and navigate to the following folder: \wp-content\themes\YOUR-THEME’S-NAME\images\ and replace the logo.png file with any image you desire. To preserve the appearance, use an image with the same size of your current logo. Option 2 Upload your logo through media … Read more