Hi Air,
fist thanks for all your support!
I have set a slide album as my main page. So where can I edit the .php file so that I can set the RevSlider as the fullscreen slider?
Code: <?php putRevSlider("home") ?>
I tried it in the header.php below "a13_theme_header();"
The RevSlider appears but below that also the album slider which is set in the settings.
I need only the RevSlider and I have no clue where to edit that.
Thank you again! Until tomorrow!
Comments
In your case I would create new template from page.php, and remove everything what is not needed by you, and then insert there what you need. How to create template is explained here https://developer.wordpress.org/themes/template-files-section/page-template-files/page-templates/
With kind regards.
But hey, it's ok thanks.
if($fp_variant == 'page'){
insert what you need, like header footer and slider :-)Of course you have to select then "Page" as your front page.
With kind regards.
So I have to learn more about PHP. I thought that would be easier...
To make sure anything works in your if() add there as first line(in if)
var_dump('my code works, almost!');
and check if you will see it.With kind regards.
But for most make sure that your condition actually runs at all.
With kind regards.
But now there is a css problem. On the desktop it works great. But on mobile devices there is a gap under the slider.
First there was a gap on top and I fixed it with:
.page-id-682 #mid::before {
height: 0px;
}
Also for the mobile:
@media only screen and (max-width: 1024px) {
.page-id-682 #mid::before {
height: 0px !important;
}
}
Is there a way to fix this?
Now I have on the desktop size that the slider (in height) is now under the footer, so it is scrollable wich I do not want to. And in "iPhone Landscape" you can scroll the slider up with a white gap underneath.
It would be very handy if you can show me only the code sentence, where the front page single gallery is shown. So that I can change only this code line.
Because the single album is fullscreen and as I like the slider should be.
Remember that Revolution slider has its own setting for setting slider full screen.
With kind regards.
I know that the RevSlider do have its own settings. And it is set just right that it will fit like it should
I don't know how to explain further. It's all about the first page. I need the exact equivalent of your (photon) front page looking if it set to display a single album in the slider full screen mode. Only instead of your album the RevSlider one.
Maybe my thinking is a little to easy for that and it is more complicated to integrate it. Or it is very easy and my explanation is to complicated
I think there must be somewhere a code line wich calls the dedicated single album, right?
This is what I want to change to the RevSlider one. So that the front page will not call the photon single album to show right on the front page, it should call the RevSlider instead. But to keep the rest the same also in the same position (menu, footer, etc.).
And it should call the RevSlider only if I add a custom meta tag (slider_id) to the main page. Otherwise it should do that for which it is predicted to do. Call the single album, call the album gallery and so on.
Rest you have done in code. Don't confuse your self with single album, you are and should be using page now.
All "magic" is done in front-page.php
With kind regards.
But I see I have to experiment a lot more on this to get it right.
With kind regards.
Take a look.
But you can still scroll a tiny bit on the desktop view...
And with Firefox you will see it also in the desktop view. It doesn't fit.
front-page.php
CSS (page-id-682 is the page itself, in my case the 682) And in the RevSlider you have to exclude ".footer"
Instead of page-id selector you could use
body.home
, so you don't need to look for your page ID:-)With kind regards.
To complete this changes it would be great if you can tell me where the function is when I hit the top right button to hide everything but not the content itself?
You will be interested in js/script.js line ~1155:
A bit lower you will find: You can add there your
.home
selector and it should work fine, like this: With kind regards.Is there a way to include it in the child theme?
I add this to the functions.php but it does not override the parent theme one.
I believe you will have to do same tactic I did in
a13_child_style()
function in functions.php in child theme and first copy dependencies. However it might use some other variable then$wp_styles
. I never did it, so you have to dig around to see is there anything similar for scripts also.Good luck!
If you wont be able to do it then I will dig around.
With kind regards.
The child theme functions.php will load before the parent one. But I did not dare not to load the parent one.
So I will continue to try to find a solution here. But for now I did the changes right in the parent one.
With kind regards.