jonpfraser
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Center a Header ImageYeah WPyogi is right, you do need to create a child theme before making any changes. The code I posted will fix your styling issue though.
Just a tip as a mod, try not to be condescending to those helping out. It’ll make your job a lot easier if people want to continue giving ongoing assistance to others rather than feeling like their help isn’t wanted…
Forum: Fixing WordPress
In reply to: Would like to align pics side-by-side above each otherMake sure to create a child theme before making any changes to the code, otherwise any changes made could be lost when the theme is updated.
Forum: Fixing WordPress
In reply to: Center a Header ImageHere is a fix that might work.
In the section that has:
/* Resize images to fit the main content area. - Applies only to images uploaded via WordPress by targeting size-* classes. - Other images will be left alone. Use "size-auto" class to apply to other images. */ img.size-auto, img.size-full, img.size-large, img.size-medium, img.aligncenter, .attachment img, .widget-area img, .wp-caption { max-width: 100%; /* When images are too wide for containing element, force them to fit. */ height: auto; /* Override height to match resized width for correct aspect ratio. */ }
Hit return after the line with “/* Override height to match resized width for correct aspect ratio. */” and add this code:
display:block; margin-left:auto; margin-right:auto;
The code should now look like this:
/* Resize images to fit the main content area. - Applies only to images uploaded via WordPress by targeting size-* classes. - Other images will be left alone. Use "size-auto" class to apply to other images. */ img.size-auto, img.size-full, img.size-large, img.size-medium, img.aligncenter, .attachment img, .widget-area img, .wp-caption { max-width: 100%; /* When images are too wide for containing element, force them to fit. */ height: auto; /* Override height to match resized width for correct aspect ratio. */ display:block; margin-left:auto; margin-right:auto; }
Make sure that the last brace is still there.
That should hopefully work!
Forum: Fixing WordPress
In reply to: How to convert a shortcode to an anchored imageCan you post a URL of the page? It’ll be a lot easier to see what the situation is if we have a link.
Forum: Fixing WordPress
In reply to: Would like to align pics side-by-side above each otherHey,
Radices is 100% right, i have tested using ‘inspect element’ in google Chrome (very handy)
You need to change this line of code:.post img.aligncenter { margin-bottom: 10px; }
To this:
.post img.aligncenter { margin-bottom: 0px; }
It is located at line 249 as Radices said, the section it is contained in is:
* Add padding to images in the posts ----------------------------*/