Vegard S.
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Comments get 404 error wp-comments-post.phpI’m able to comment. I also don’t get any error from http://www.andreayximoaroundtheworld.com/wp-comments-post.php. Try clearing your browsers cache.
Sorry for the “test”-comment 🙂
It could, but it is not relative to the php-file. So the relative url would be something like:
<img id=”about” src=”/wp-content/themes/Your-Theme/images/about.jpg” alt=”about”>/Forum: Fixing WordPress
In reply to: Open links in "_parent" mode with masked URLSHi!
Not sure if I understand you correctly, but I don’t see this working. When you enter http://blackknightsatellitemovie.com/wp-login.php (or wp-admin), what you are actually requesting is http://www.clickfriends.mobi/black-knight-satellite/wp-login.php wich is not a valid URL.
Try using the get_template_directory_uri() function.
<img id="about" src="<?php echo get_template_directory_uri(); ?>/images/about.jpg" alt="about" />https://developer.wordpress.org/reference/functions/get_template_directory_uri/
Forum: Fixing WordPress
In reply to: Remove title bar from homepage – Arcane ThemeYou have currently just hidden the title text (.home .entry-header), to hide the whole title-wrapper add the following to your CSS Stylesheet editor:
.home .entry-header-wrapper { display:none; }Forum: Fixing WordPress
In reply to: Migrating wordpress to new host with new wp accountOk, thats strange:) Seems like something is corrupted. You can try troubleshooting with one of the following:
- Upload a new wp-login.php file (Make sure you get the wp-login.php-file from the correct version.
- Log in from wp-login.php (http://www.yourdomain.com/wp-login.php)
- Disable plugins (Rename the Plugins folder to something else, like pluginsX)
- Try resetting your password with the reset password link
There is also some more tricks here: http://codex.wordpress.org/Login_Trouble
Forum: Fixing WordPress
In reply to: Duplicate featured images on OM theme by CodestagYou’re in the right spot. There should be a another template file that include entry-thumbnail.php. It should be called content-single.php. Inside this file you should find somthing like this, and thats what you want to remove:
<?php get_template_part( 'partials/entry', 'thumbnail' ); ?>But for a dirty quick-fix you can delete everything inside entry-thumbnail.php. (Keep a backup 🙂 ) But beware that there are other tempalte files that uses the entry-thumbnail.php file to get the featured image, so it may disapear on other pages.
Forum: Fixing WordPress
In reply to: Pages differ from Dashboard to BlogLook under Settings->Reading here you can set you front page for your blog. Please also provide some more information like what theme are you using, an url to your website etc. (http://codex.wordpress.org/Forum_Welcome)
Forum: Fixing WordPress
In reply to: Duplicate featured images on OM theme by CodestagOK, so thats why its displayed twice. In your theme-folder you should have a folder called partials, and inside you should have a php-file named content_single.php or loop_single.php or somthing with single 🙂
Inside here look for this, and delete it(or comment it out) :
the_post_thumbnail();
(It should be inside a <figure>-tag above the entry-header )Remeber that editing a theme maintained by someone else, you could loose your changes if the provider updates the theme. To prevent this consider using a child theme. (http://codex.wordpress.org/Child_Themes)
Forum: Fixing WordPress
In reply to: Migrating wordpress to new host with new wp accountYou have to insert a new row in the wp_users/wp_usersmeta table in the database. If you have access to phpMyAdmin(or any other application to handle MySQL) follow these steps:
Select the wp_users table, and click the Insert-tab
- user_login – this is the username you want to use
- user_pass – this is the password you want to use (be sure to select MD5 from the Function menu)
- user_nicename – put whatever you would like to refer to yourself as (not your username)
- user_email – this is the email account associated with this user
- user_url – the url to your website
- user_registered – when was this user registered – just select a date with the date selector
- user_activation_key – you can leave this blank
- user_status – leave this set to 0
- display_name – same as user_nicename
Click Go/Save/Run 🙂
If everything is OK, continue to the wp_usermeta table. Here you would need to insert two rows, first:
- umeta_id – leave this blank(it is automatically generated)
- user_id – this is the id of the user you created in the previous steps
- meta_key – for this step insert wp_capabilities
- meta_value – insert exactly this – a:1:{s:13:”administrator”;b:1;}
Second insert:
- umeta_id – leave this blank
- user_id – this is the id of the user you created
- meta_key – for this step insert wp_user_level
- meta_value – insert 10
Hope this helps 🙂
Forum: Fixing WordPress
In reply to: Duplicate featured images on OM theme by CodestagIs your image set as a featured image and added in the content of your post/page?
Can you post any code from your theme files, specifically single.php?
Forum: Fixing WordPress
In reply to: hard coded ip addressDo a Search and Replace directly in the database as suppose to doing it on the .sql file in a text-editor as this can cause som trouble.
Here are the wordpress guide from the codex:
http://codex.wordpress.org/Moving_WordPress#When_Your_Domain_Name_or_URLs_Change, and a good serch and replace script:
http://interconnectit.com/products/search-and-replace-for-wordpress-databases/Remember to back up you database before you start 🙂
Forum: Fixing WordPress
In reply to: Error MessageCan you please provide the code in your admin-functions.php file arround the line 959, the complete function? And also what this code might be doing? 🙂
Forum: Fixing WordPress
In reply to: How to delete a commentThis is probably in your themes comments.php-file.
Forum: Fixing WordPress
In reply to: Migrated WordPress to a new Domain, Media Library Links are brokenAre you using permalinks? If so, try turning them on and of again. Remember to store your custom structure, if you have, somewhere as this might disapear.
Also, are you using any kind of on-the-fly resizing tool, timthumb.php etc? Are you using any plugins that might have there own databases that where not included when you run the s&r script?