Colin Murphy
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Changed to New URLHi chucknyi,
These would be the steps I would take to change URL’s when switching domain names.
1. Backup the database and files
2. Go to wp_options and change the following
– the option siteurl and home to the new URL of your site3. Check the htaccess file and make sure it’s ok.
For an example you might need to change the RewriteBase to / if the previous domain was was http://www.a.com/mywebsite
4. You should now be able to login at the wp-admin URL
5. Go to settings -> permalinks and click update. This will update flush the rewrite rules and will make sure all the URL’s work properly
Please leave me know if you need any more help or if you have any questions about the above.
Colin
Forum: Fixing WordPress
In reply to: Newbie needs help fixing Unexpected T_STRINGI noticed the array $themecolors is not being used for anything. What is it’s purpose ?
Forum: Fixing WordPress
In reply to: Newbie needs help fixing Unexpected T_STRINGThe code above doesn’t seem to be the full code but I noticed a comma after ‘url’ should not be there as it is the last item in the array.
Forum: Fixing WordPress
In reply to: 2011 posts view == bad URLNo problem I’m glad I could help.
Forum: Fixing WordPress
In reply to: 2011 posts view == bad URLHave you tried flushing the rewrite rules. You can do this by going to Settings -> Permalink and click “Save Changes”.
If doesn’t work you should try deactivate all your plugin’s and revert to the twenty eleven theme and see if the problem has been resolved.
Forum: Fixing WordPress
In reply to: Duplicate button in CSS or add widthIf you are only starting learning coding I would recommend http://www.w3schools.com/ for learning the basics of HTML, JavaScript and CSS.
Leave me know if you have any other issues.
Forum: Fixing WordPress
In reply to: Duplicate button in CSS or add widthHi Richmond what you need to do is add the class button2 along with the class button like this.
<span class="button-wrapper button button-2"> <a href="#">Button 2</a> </span>You then would use the following CSS
.button-wrapper.button-2 { width: 200px; max-width: none; }In the above code
The reason why we would set the max-width to none is because otherwise it would only go to a max width 1064px as stated in the class button-wrapper.I would also recommend unless other elements other then the span element is the class button-wrapper to remove span in front of the class button-wrapper because it will search for every span that has a class called button-wrapper which slows down the loading time.
If you need any further help please leave me know.
Forum: Fixing WordPress
In reply to: Pages & Posts are "Not Found" all of a suddenTry and update the permalinks so go to settings->permalink and click save. I cant see any issues on the website.
Forum: Fixing WordPress
In reply to: Duplicate button in CSS or add widthWhat you could also do is the following for example you have two types of buttons but the only difference between them is the width so what you could do is have a class called button and button2. The class button2 class would have a larger width.
<a class="button" href="#" title="Title 1">Button 1</a> <a class="button button2" href="#" title="Title 1">Button 2</a>so the CSS would be
.button { //Some styling here width: 100px; } .button2 { width: 200px; }How this works is you can add multiple classes to any element so CSS reads down so it would add the style for the class button to every link width the class button but when you also add the class button2 because the CSS code for button2 is below button it will override its width and make it a width of 200 pixels.
Please leave me know if you have any questions about this works.
Forum: Fixing WordPress
In reply to: sorting postsWhat about ordering post by date and then orderby asc assuming that the first post you posted was Lesson 1 through to 10 …
Forum: Fixing WordPress
In reply to: 404 Errors When Updating PagesThanks Esmi,
It worked with the Twenty Eleven theme so I looked through my code and there was a mistake with the Rewrite for the Custom Post Type.
Forum: Fixing WordPress
In reply to: Query for Sorting Post by Post Meta FieldsThanks very much. That worked perfectly 🙂
Forum: Fixing WordPress
In reply to: htaccess rewriteI removed the first RewriteRuleand added [R,L] to the second RewriteRule.
It is working but still adding the query string to URL instead of the pretty URL.
Its related to calling out NGG Galleries.
Forum: Fixing WordPress
In reply to: htaccess rewriteHi Big Bagel.
Sorry if i was not clear enough so when you go to the URL
/bodega/gallery/album/nightlifeit changes the URL to/bodega/gallery?album=nightlifeYes i want to keep the pretty URL and also on the server side run the query
Forum: Fixing WordPress
In reply to: htaccess rewriteAny help would be grateful as I am really stuck on this issue.