David_G
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: how to center picture on postThe div id only follows the css you have set for it, it doesn’t alter the picture itself, that you edit in the post editor.
Forum: Fixing WordPress
In reply to: How do I get text to wrap around a picture?Go to your post editor, select the tab on the top right for TEXT and edit the code.
Forum: Fixing WordPress
In reply to: how to center picture on postI don’t see the div id on that one.
Forum: Fixing WordPress
In reply to: how to center picture on postclear the cache on your browser.
Forum: Fixing WordPress
In reply to: how to center picture on postYour small picture on the about page is centered now, You can use the same div on the welcomeinmyworld post and it will use the same css.
Forum: Fixing WordPress
In reply to: how to center picture on postYour very welcome.
Here’s a link to check, you might find it helpful.
https://www.codecademy.com/learnForum: Fixing WordPress
In reply to: how to center picture on postyes just like that. As you add css you can label the snippets so you know what they do like this. Everything between /* and */ will be ignored and is only for your use.
/* This is my picture */ #mypicture { dislpay: block; text-align: center; }Forum: Fixing WordPress
In reply to: how to center picture on postYes, Place the image in your post then go to your post TEXT editor and add the div id. It will then do what you told it to do in the css. Remember that you must close the div also. You can use div id’s on just about anything. Name it what you want. In the example below your css selector would be
#whatever
Does that make sense?<div id="whatever"> Image info </div>Forum: Fixing WordPress
In reply to: how to center picture on postWith the div id I gave you, it will ONLY affect that particular image on that post. If you use the same div id somewhere else then that will also follow the same command. You can name a div id anything you want. So if you use the same image on multiple pages/posts in the same way with that div id it will do the same thing everywhere you put it.
Forum: Fixing WordPress
In reply to: how to center picture on postPHP files have commands like,
add_filter
or
add_actionJust FYI
Don’t add CSS to your functions.php file or any other php file
Forum: Fixing WordPress
In reply to: how to center picture on postjust add it after what is already there after the last closing bracket.
Make absolutely sure you are not adding it to a php file as that will crash your site. What do you have in line 1 to 7? It should be similar to the snippet I gave you. CSS works like this:selector { styling-type: command; }Forum: Fixing WordPress
In reply to: how to center picture on postSorry, I screwed up my last post, there isn’t
<a href>it would be before the<img classand after/>for that code.That being said, your photo should appear in the center with what you have above, I tested it also and works perfectly on my computer. Something is blocking it on your site.
You can try what I described above, here are the steps. Copy the entire snippet just below, that’s your image with the div added, replace that part in your post.
<div id="mypicture"><img class=" size-thumbnail wp-image-66 aligncenter" src="http://globrod.com/wp-content/uploads/2015/07/globrodtravelroadtrip-150x150.png" alt="globrodtravelroadtrip" width="150" height="150" /></div>Then add the following css to your custom css.
#mypicture { dislpay: block; text-align: center; }If you don’t have a custom css area in your theme you can use this plugin to add the css snippet above.
https://wordpress.org/plugins/simple-custom-css/Forum: Fixing WordPress
In reply to: how to center picture on postYou should be able to center it in your post editor. If you cannot you can add a div selector to it and then use css coding to center it. Here is an example of what you can do.
In your post editor find the
<a href="">. Then add a div id like below, name it whatever you want then after the</a>close the div selector with </div><div id="mypicture" <a href= YOUR IMAGE INFO ></a></div>To style it use a child theme and edit the style.css file or use a plugin like #Samuel Elh suggested to add css.
The css selector in the above example would be #mypicture, you would use it this way.
#mypicture { dislpay: block; text-align: center; }You can do this with just about anything that you want to style.
Forum: Fixing WordPress
In reply to: editing content widths for all content areasThe best way to make changes like this to a theme is to use a child theme, so your tweaks won’t be overwritten when updating the theme. Here are some guides in case you haven’t made one before:
http://www.elegantthemes.com/blog/resources/wordpress-child-theme-tutorialYou should also check this out for customizing your site.
http://themesandco.com/snippet/firebug-best-spent-6-minutes/
http://getfirebug.comThen to edit this editor is fantastic. You can edit multiple files at the same time.
http://notepad-plus-plus.org/And this FTP program is tops in my book.
http://www.coreftp.com/Forum: Fixing WordPress
In reply to: White screen on admin and siteYou will need to ftp to your site and delete or rename that plugin you were working with, rename it by adding .old to the folder. You will find the plugins in the following folder.
wp-content/plugins/