Thoughts, information and reflections about technology

Uncategorized

1 2 3 5

Preventing images from overflowing a column in WordPress with an Artisteer theme and possibly other themes.

I use Artisteer to create themes for my WordPress sites. As I was testing the sites, I noticed a major issue.

  • The monitor I use for development is 1920 x 1080.
  • I revised the WordPress large image to 800 x 800 in the WordPress Media Settings.
  • The layout is three columns, a wide column for content and two thinner columns for navigation and ads.

I noticed that when I resized the browser to a more square aspect ratio, the image would start to overlap the two right columns. As I researched there were a lot of solutions posted about modifying functions.php and using plugins. The issue was that none of the instruction were really clear as to where to put the code in functions.php much less which functions. php to use. Continue reading

You must enable html multi for file uploads.

I was working on an app. The app requires allowing multiple images/docs to be attached to a document.

I was getting a no method error.   I had a similar function working in another app and compared the models, databases and controllers line by line.

It turned out that the problem was with the form. You need to set an HTML multipart attribute when you call the form to upload a file or files  as in: Continue reading

1 2 3 5
Contact me
Archives
Categories
Recent Comments
Amazon Disclosure

We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.