Modifying layout -- adding footer content
gatoruss
Registered Users Posts: 27 Big grins
I want my homepage to have a title, nav menu, background photo and a carousel of selected photos. I think I have successfully accomplished adding each to my home page, but I do not like the placement of the carousel. In order to keep it from laying out in the middle of the display and covering the central point of my bg photo, I needed to set the top margin to 350 px. But that forces the footer (with log-in link) off the display (see black arrow in lower right corner of screenshot below). I would like the carousel to be in the footer, I suppose. But the theme I began my tinkering with, doesn't have a footer. Is it possible to add a footer content block? if so, how?
Here is a screen shot of my current homepage:
[IMG]http://dgrin.com/<a href=http://www.smugmug.com/gallery/n-vM3KLN/i-DfWjP2k/A target=_blank>[/img]
Here is a screen shot of my current homepage:
[IMG]http://dgrin.com/<a href=http://www.smugmug.com/gallery/n-vM3KLN/i-DfWjP2k/A target=_blank>[/img]
0
Comments
Can you post your site?
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
photos.gatoruss.net
Thanks for your help.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
BTW - Is there a resource that provides the name of the various CSS elements; for example, the ".sm-page-widget-12345291" that you reference? The "12345291" is the element ID, correct? How did you determine that?
Thanks again.
If you hover in a widget, right click, and pick "Inspect Element" some line in that widget will highlight. If you look up some, maybe 5-8 lines you'll see the red widget class names.
.sm-page-widget would affect all widgets
.sm-page-widget-9551091 is the specific class name for this widget
If you scroll to the very top in the inspect element box, 3 or maybe 4 lines down from the top you'll find the <body ... tag. In the class names .sm-page-node-2m6ZH is the specific class name for this page.
My Website index | My Blog
of the parent folders, three in this case. You can apply CSS using a folder class name and the CSS will flow
down to all children. One will be your top page, homepage then folders and sub-folders.
My Website index | My Blog
The html code for my home page looks overwhelmingly complex. Using the "Inspector," I cannot seem to find an element to click on that shows the element ".sm-page-widget-12345291."
As for the body tag, mine reads differently from the one you posted. The is no "parent-node" references. It reads as follows (if I am logged out):
If I save the page source and it open on a text editor (Notepad++), a search for 12345291 results in 3 hits (two lines of code - one with 1 hit and the other with 2 hits), as follows:
I am lost...<img src="https://us.v-cdn.net/6029383/emoji/headscratch.gif" border="0" alt="" >
See red in quote, that's the widget class name.
Any widget you "inspect element" on will show that line with its class name. Look up from whatever
line is highlighted about 5-8 lines. I always try the click on top part of widget so I don't have to look
up far.
My Website index | My Blog
In reading up on " absolute positioning," it seems that the "bottom" property sets the bottom of the element in question (in my case "my widget element") in relation to the bottom of its nearest "positioned" ancestor -- from http://www.w3schools.com/css/css_positioning.asp :
So, if I am understanding this correctly, since the above CSS code (with "bottom : 0%", rather than "bottom : 5%") does not move "my widget element" to a position that is adjacent to (or at least very close to) the footer, it would seem that there must be some "positioned" ancestor element, in which "my widget element" is contained, that is affecting the position of "my widget element."
Any idea on how I might track down that ancestor element. I tried looking thru the html in the "Inspector" and "firebug," but (1) neither show the css (or at least I haven't figured out how to view the CSS), and (2) html is a morass!
I used to put them directly below the breadcrumb but have moved them to the end of the page.
My Website index | My Blog
Dumb question: What is a "CSS widget"?
Above that will be "On All Galleries" or "ON All Folders" or "Just This Page". This will show a list all widgets
currently on a page. If you hover any of these, on the page they should color highlight and say
where they apply. Colors might be different for different levels.
My Website index | My Blog
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Allen, that you for your patience -- I am sorry that I am so obtuse, but in the red bolded language quoted above are you saying that if I hover over the list in the flyout, the corresponding element on the page will become highlighted, or that if i hover over the element on the page, the applicable html in the "Inspector" with become highlighted?
Thank you Mike for the updated code snippet. I am at work and cannot try that, but will this evening.
header bar will highlight. If you look at the item's colored highlighted header it also says something like
red "on entire site" or green 'ON "Just This Page".
Inspector or "Inspect Element" in Firefox is activated from a right click menu for a spot on the page. If
clicked, in the menu, a box will pop up with the html highlighted for that spot hovered. If the spot
hovered is inside a widget, one of the html lines in that widget is highlighted in blue. Read up a few lines
and you can find the widget class name to use in CSS.
Here's an example of a widget I use for a title .
My Website index | My Blog
It is interesting that when I add Mike's updated CSS code, it works as expected when the page is "published." Here's a screen capture:
Oddly, however, while in customize mode the "multiple photo block" shifts to the top right corner of the display, and it becomes impossible to add any additional content blocks to the page. Here's a screen capture:
If I wanted to add additional content blocks, I would need to add before updating my theme with Mike's suggested code.