Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
I have the CSS turned on in the template. It is the same CSS as the one in Backlight 1, as per your instructions.
I will remove the ‘?>’ and give it a go.
Jack
Offline
and are you sure you're referencing the right phplugins file in your page template. That out of place ?> should probably have killed the site (at least it did for me when I tested it)
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Note: The very similar script that Daniel provided to me a while back worked fine in Blacklight 1.
Jack
and what you have (minus the errant ?>) works for me in my test site. It appears to me that perhaps you're referencing the wrong phplugins file in the home page's page template.
If you go into your menu set and change "Galleries" to "Enter", you'll get the same effect as adding the Enter link via phplugins.
You can then place it by changing some Masthead and Menu settings in your template and style it with custom css.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
I have the CSS turned on in the template. It is the same CSS as the one in Backlight 1, as per your instructions.
I will remove the ‘?>’ and give it a go.
Jack
your home page, https://www.stuffbyjack.com/ , is not using any custom css. Whatever page template you've enabled custom css and phplugins in, it's not the page template being used by your home page.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
OK. Here is where I am. I removed the '?>' and that did the trick! I also had the site crash when that was in the php file. I have 2 Page templates, the full screen template and the regular page template. I enabled the CSS and PHP functionality back and forth as I was trying to get things working.
Once it was working again, the button was in the upper right corner of the page and almost off the page. I tried some things and finally removed the 'masthead_primary_bottom' function and replaced it with the 'main_bottom' function in the PHP file. That put the button at the bottom right on the page, same as where it was in Backlight 1.
On a desktop browser it is OK, but on my iPhone and iPad (in portrait mode) the bottom is slightly off the bottom of the page, unless I scroll up a bit. I looked at the CSS file and it is a "fixed" position.I tried to modify the 'bottom' setting to move the button up a bit higher, but that setting change to more pixels did nothing to the button position on the screen.
Any idea how I can move the button up higher on the screen?
The CSS file contents are below;
#enter-field {
position: fixed;
bottom: 20px;
right: 20px;
background-color:rgba(255,255,255,0.7);
font-size:1em;
border-color: white;
white; border-width:4px;
border-style:solid;
}
#enter-field:hover {
border-color: black;
}
#enter-field a {
display: block;
padding: 24px;
color:black;
}
#enter-field a:hover {
text-decoration: none;
}
.masthead {
display: inherit;
}
The site is https://stuffbyjack.com
Thanks,
Jack
Offline
Increasing the bottom distance moves it up. And then there is a loose 'white; parameter.
#enter-field {
position: fixed;
bottom: 20px; <-- increase as desired
right: 20px;
background-color:rgba(255,255,255,0.7);
font-size:1em;
border-color: white;
white; <-- delete this
border-width:4px;
border-style:solid;
}
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
I apologize as I am not CSS or PHP literate.
As suggested. I removed the loose 'white' and changed the pixel value for 'bottom' to 200 (I changed the value once before to no avail). The button does not move. It seems stuck at a given position at the bottom of the screen.
Two questions.
1. There is a .masthead statement at the end of the CSS file (as posted above). What does that do/mean and should it be changed?
2. Is the "main_bottom" function in the php somehow freezing the button position? If so can I change that?
Any other suggestions?
Thanks,
Jack
Offline
The enter button is now higher on my iPhone. It is most likely a cache issue that prevents you seeing the latest changes. Try to clear the cache on your phone.
Don't know why the .masthead item is in your file. Using 'main_bottom' works well. Nothing to worry about that. This defines the insertion point for 'enter'.
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
Daniel,
Nice. That was it all along!
Thank you.
Rod,
Also, thanks for your help.
Jack
Offline
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline