Home User profile
tagDiv Member
Founder at http://TryHealthier.com
cva183
tagDiv Member

Ok so I have managed to figure it out.

<?php
if(get_the_ID()==1735) {
echo do_shortcode(‘[rev_slider alias=”fullsite-block-1″]’);
}
?>

If I do it this way it seems to be working.

cva183
tagDiv Member

Hi Bogdand,

Thanks for helping me 🙂

Problem is…I just dont get it.

So I did this:

Went to cpanel – file manager, edited header style 1. added this code right at the end.

<?php
if(is_home() || is_front_page()){
echo do_shortcode(‘[rev_slider alias=”fullsite-block-1″]’);
}
?>

saved.

Refreshed site – homepage is blank.

What am I doing wrong? This is so frustrating…

  • This reply was modified 9 years by cva183.
cva183
tagDiv Member

Bogdan,

I do not want the slider on the page. I just want it in the header, and to be displayed only on homepage. How do I do that? Most themes have a setting when publishing a page – at the bottom – you can add a slider to the header of the page.

I know how to use the Slider, I dont know how to add it to Newspaper 7 – there is an option that says Slider but only displayes “Default.” It wont show any of the created sliders.

On http://www.universalprinciples1.com/ – I was able to implement it – kindly check it out to see how I want it.

Regards,
Vlad

cva183
tagDiv Member

Rev Slider says there is an option to add this php code… but I dont know where…

<?php
if(is_home() || is_front_page()){
echo do_shortcode(‘[rev_slider alias=”slider1″]’);
}
?>

cva183
tagDiv Member

Nevermind, works with this one


@media
(max-width: 767px){
.td-scroll-up-visible {
display: block;
}}

cva183
tagDiv Member

Hi,

Thank you for your help.
I’ve pasted the code but I am getting and error: “Expected LBRACE at line 2, col 1”

cva183
tagDiv Member

FIXED: I’ve cloned the homepage to see, surprise surprise, it works perfectly if its not set as homepage. Then I thought that it might be some sort of ad or something, so I paused adblocker and BOOM! there it was, on pc also.

Turns out that Google Adsense decided to place a “Blank Add” right in the middle of my freaking Block. That was the issue… Stupid Adsense.

cva183
tagDiv Member

Also, if I duplicate the block (the same block) and move it down the page, it works without a problem… this is driving me crazy!!!

cva183
tagDiv Member

No matter if I choose another block (block 2 for example) and it doesn’t matter what settings do I use, I still have that white gap there.

Is there something I can do??

cva183
tagDiv Member

I have disabled all plugins, the issue is still there – That white gap still shows. It is clearly from the theme… site is tryhealthier.com

cva183
tagDiv Member

Also, do you know how to make the “back to top” button show on mobile devices? I’ve noticed it only shows on the desktop version.

Thank you.

cva183
tagDiv Member

Ok I will do that, I’m thinking it might be from WP Fastest Cache plugin… but I will do some testing and let you know.

cva183
tagDiv Member

P.S Forgot to mention, its the Block 1 type

cva183
tagDiv Member

Thanks for the answers, I will compare the theme files code. Can I check somehow the other files from the server besides the theme files? There are many files there I don’t know what each of them do, so I wouldn’t want to break anything…just to check them for virus or something… This is because I wouldnt want to get my hosting account suspended in case I have mallaware in my files 🙂

cva183
tagDiv Member

Is there a way to save the settings/work etc? Also is there a way to detect any suspicious code lines in the website’s source?

  • This reply was modified 10 years by cva183.
Viewing 15 posts - 1 through 15 (of 15 total)