Reputation: 11
<!-- preloader -->
<div class="art-preloader">
<!-- preloader content -->
<div class="art-preloader-content">
<!-- title -->
<h5>Loading the   <span style="color: #FFC107;">page</span> </h5>
<!-- progressbar -->
<div id="preloader" class="art-preloader-load"></div>
</div>
<!-- preloader content end -->
</div>
<!-- preloader end -->
I am basically using a web template made of **Bootstrap **and for my **Backend **I am using row PHP. And this is my pre-loader HTML code. Now as I have multiple pages like "Home, About, Contact, etc". Every time I refresh any page it shows the pre-loader. But I want to show the pre-loader when only my home page is loaded. If anyone could help me to solve the problem using inner PHP code ??
I am beginner, I dont have that much idea on PHP but am trying to learn it as much as I can. Talking about the specific problem, I tried to use inner PHP code like using IF/ELSE statement to solve the problem but it didn't work.
Upvotes: 1
Views: 39