Functions.php File
-
Hi,
I would like to modify the gallery on my site so that each image is a slightly different size (see an example that is similar to what I am looking to do on this site: http://www.fnarchitecture.com/). In the end, I should have two equal columns composed of different sized images.
It seems like the way to start to tackle this project is through a modification of the function.php file, however, I cannot find it anywhere! I am using the blask theme.
Thanks,
Ann
The blog I need help with is: (visible only to logged in users)
-
WordPress.com users cannot edit their site’s PHP or HTML files.
fnarchitecture.com is not hosted on WordPress.com, but you might be able to get a similar look by using a static front page with a tiled column Gallery using 2 columns.
https://en.support.wordpress.com/pages/front-page/
https://en.support.wordpress.com/gallery/Let us know if you need more help with that.
-
Ah ok, I sort of figured that out in the mean time, but found a gallery option that is closer to what I am going for! What about the HTML tab on each page? For example, on my home page, it has the short code that was inserted for the gallery I set up. I cannot use HTML there?
Weirdly enough, I have it set up to be two columns right now, however, it is still showing up as 3? What is overriding my preference?
Also, is it possible to control the size of each photo in my gallery and the border that appears between? If I could override these settings, I think I could accomplish exactly what I am going for!
-
Perhaps I wasn’t clear. While you can certainly use HTML in your posts/pages (and indeed that is what the HTML tab is for) you can’t edit your site’s underlying HTML template files. Even when adding HTML directly in a post or page, there are some tags that will be stripped out of your code regardless because they are not allowed here for security reasons. You can see the full list of allowed/banned code here: https://en.support.wordpress.com/code/
To the best of my knowledge, the only Gallery style that allows you to adjust the number of columns and size of the image displayed is the default thumbnail style. All the tiled mosaic styles are designed to fill the entire content area of your theme and will automatically adjust the size of your images to do so.
You can try experimenting with the Gallery styles and the shortcode parameters in the HTML tab to see if one of the Gallery styles will adjust to what you want, but I have an inkling that the tiled mosaic (rectangle) you’re currently using will not. https://en.support.wordpress.com/gallery/#gallery-shortcode
Other things I noticed: I don’t see your site title in my browser’s tab, but only the site address, which indicates that you haven’t added your site title on the General Settings page.
Also, it seems that all your links in the menu on the left lead to your homepage. Was this intentional?
-
OK-after a little experimenting it looks like the Gallery types that will take the “columns” parameter now include the square and circle types.
I’ll do a little more checking later, but right now I’m out of time.
-
The menu on the left is not yet configured. I am really concerned with getting the homepage to look how I want it to for the moment. It is really the only page that I have set up.
I am still confused, however. Will I be able to use html code to override the gallery settings (control the white border between images and the image size)? I was told by someone in another forum that he thought this was possible, but we didn’t discuss how. After some experimentation, I haven’t gotten very far…
-
Here at wordpress.com all blogs wearing the same theme like Blask https://theme.wordpress.com/themes/blask/ use the same underlying template found on the live demo site. Example: Blask demo site https://blaskdemo.wordpress.com/
As justjenniefer has already stated we WordPress.COM bloggers cannot access or edit the PHP or HTML underlying our themes.
Please read Custom design – Frequently Asked Questions
http://en.support.wordpress.com/custom-design/#frequently-asked-questions and scroll down to “Does Customize let me edit HTML?” -
Yes, I do understand that…
However, if I type in CSS code, it overrides the theme template. My question is specifically related to the gallery and if I have the ability to override some of the template standards by adding html code to the page that the gallery is locate on ( I understand that I cannot modify the template html)
-
Please type modlook into the sidebar tags on this thread for Staff help. How do I get a Moderator/Staff reply for my question? https://en.support.wordpress.com/getting-help-in-the-forums/#how-do-i-get-a-moderatorstaff-reply-for-my-question Then please subscribe to this thread so you are notified when they respond. To subscribe look in the sidebar of this thread, find the subscribe to topics link and click it.
-
However, if I type in CSS code, it overrides the theme template. My question is specifically related to the gallery and if I have the ability to override some of the template standards by adding html code to the page that the gallery is locate on ( I understand that I cannot modify the template html)
You can add CSS, or if you want to create a static page (instead of using the gallery feature) you could create your own HTML using these guides:
https://en.support.wordpress.com/code/I hope that helps!
- The topic ‘Functions.php File’ is closed to new replies.