Category: techadvice

How to Edit CSS and Make Images/ PDFs Sit in a Row on a WordPress Page

Want your images to be in a row without all of the plug-in hassle? I did too, but this took me quite a bit of time to perfect. Now you, WordPress beginner, can follow these 5 steps:

1. Go to your website (www.yourdomain.com) and click “Customize” in the top left.

2. Click “Additional CSS” on the left sidebar that appears.

3. Into the “Additional CSS” textbox COPY AND PASTE BELOW

/* Images in a Row */

.page-id-83 .post-content{
display: flex;
flex-direction: row;
justify-content: space-between;
flex-flow: row wrap;

}

.page-id-83 .post-content img {
flex-basis: 17%;
display: flex;
flex-direction: column;
align-items: center;
}

END COPY AND PASTE

Your code should look like this:

4. You have to make TWO changes to the code. First, you will have to change the page-id number in the “Additional CSS” text area (where you copy/pasted). Simply replace the 83 with your page’s ID. Here is how to find the page-id:

Be on the page you want to edit (www.yourdomain.com/pageyouareediting) and Right Click > “Inspect”. This will open your browser’s developer tool on the right sidebar. This contains all of the code for your website.

In the body section, you can find the page-id number. You will see it says page-id and a number unique to your page. Use this number (mine is 83 but yours will most likely be different).

 

 

5. Lastly, play around with the percentage for the flex-basis % in the “Additional CSS” text area (where you copy/pasted). Mine is set at 17% because I wanted 5 medium-sized images next to each other before they started a next row. If you want more images in one row, you will put a lower flex-basis % (ex: 10%). If you want fewer images in one row, you will use a higher flex-basis % (ex: 50%).

Voilà; you’re done!

 

Unless… you want to use PDFs (not images) like my Academic Writing page!

This process is a bit more lengthy. First, you need two awesome plugins. Install and activate PDF Image Generator and PDF Viewer.

Now, use this code INSTEAD in the “Additional CSS” box:

COPY AND PASTE BELOW

/*PDFs in a Row */

.page-id-83 .post-content{
display: flex;
flex-direction: row;
justify-content: space-between;
flex-flow: row wrap;
}

.page-id-83 .post-content .wp-caption {
flex-basis: 17%;
display: flex;
flex-direction: column;
align-items: center;
}

END COPY AND PASTE

Don’t forget to change the page-id number to your page’s unique identifying number and to adjust the flex-basis %. See above for those directions.

Ciao for now,

<3 Nan

 

Best Apps for Millennials

You don’t have to be a millennial to read this post, I just noticed that I’m at the age where I’m forming many habits and often use apps for guidance! Anyway, here’s my list of  the best FREE apps you can download NOW to be smarter, richer, healthier, happier and more capable of taking on future challenges.

GoodGuide– start forming those conscious consumer decisions now so that they become second nature in the future. I love how this app gives products a score out of 10. See if your favorite food, skin care products, household products and more gets a passing score. Even better… they have #vegan filters!

 

Buycott– more conscious consumerism, yay! This time more political. No, downloading both GoodGuide and Buycott is not redundant.

 

Charity Miles– earn $ for the charity of your choice just by moving! Turn on the distance tracker each day and make 25cents/mile walking or 15cents/mile biking. It’s that easy.


Coinbase– it’s never too early to diversify your assets with some tech investments. Bitcoin shares keep rising, just sayin’. Also have to give my boyfriend a shoutout for getting me in on the bitcoin fun.

 

DailyWorkoutApps– getting moving is SO much harder than staying moving. I’ve used this app for years and don’t plan to stop in 2017; it’s got time settings, easy-to-follow videos, and a daily reminder that goes off when you normally work out.

 

SoundCloud– because everything is better remixed. Use this app with the DailyWorkoutapps for a #killercombo.

 

Secant– this game is fun AND flexes your brain muscles. Not to mention my big bro made it!

 

A meditation app of your choice- use this article^ to find one for your needs. The results are in: meditation has a bunch of positive effects for all that is you (mind, body, self, etc). Start practicing now so that you can be a Yoda when you are old. #YodaNan

Oh, and maybe delete Snapchat; I’ve probably gained weeks on my life.

Ciao for now,

<3 Nan

 

© 2024 Nan Farley

Theme by Anders NorenUp ↑