I have 4 files :
index.php on main folder that loads header, content and footer.
<?php
include('header.php');
echo $this->content();
include('footer.php');
?>
in header.php on main folder too, i have this :
<div class="header-nav">
<div class="container">
<div class="navbar-wrapper">
<div class="navbar navbar-expand-lg">
<div id="mobileMenuMain" class="collapse navbar-collapse o2 fe">
<nav class="main-nav-menu main-menu-nav navbar-arrow">
<ul class="main-nav">
<li>
<a href="<?php echo base_url(); ?>" title="home">
<?=lang('01')?>
</a>
</li>
<?=menu(1);?>
</nav>
<!--/.nav-collapse -->
</div>
<?php if( ! empty($phone) ) { ?>
<div class="navbar-phone d-none d-lg-block o1">
<i class="material-icons">phone</i>
<?php echo trans('0438');?> :
<?php echo $phone; ?>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
and the main content file that loads multiple scripts, iframes or even load other php files. the location of this index.php file is located at subfolder views/home/ of the main folder and has this inside :
<style>
.home_hidden {
display: none !important
}
.form-search-main-01 .col-md-6,
.form-search-main-01 .col-md-5,
.form-search-main-01 .col-md-4,
.form-search-main-01 .col-md-3,
.form-search-main-01 .col-md-2 {
width: 100% !important;
flex: 0 0 100%;
max-width: 100%;
}
</style>
<?php include $themeurl. 'views/home/slider.php';?>
<div>
<div style="position:relative;padding-top:30%;">
<iframe src="//maps.avs.io/hotels?v=1&marker=264084&host=hotels.tangopapas.com%2Fhotels&locale=en&draggable=true&disable_zoom=false&scrollwheel=true&color=%2300b1dd&contrast_color=%23ffffff&width=500px&height=240px&lat=36.395556&lng=25.459167&zoom=7"
width="500px" height="240px" scrolling="no" frameborder="0" allowfullscreen style="position:absolute;top:0;left:0;width:100%;height:100%;"></iframe>
</div>
</div>
<script src="https://www.travelpayouts.com/blissey/scripts_en.js?categories=5stars%2Cpopularity&id=30553&type=compact&marker=264084&powered_by=true&host=hotels.tangopapas.com%2Fhotels&locale=en¤cy=eur&limit=10&nobooking=&ids=315482%2C27133092" charset="utf-8"></script>
<div>
<div style="position:relative;padding-top:200%;">
<iframe src="https://hotels.tangopapas.com" frameborder="0" allowfullscreen style="position:absolute;top:0;left:0;width:100%;height:100%;"></iframe>
</div>
</div>
<div style="margin:auto;">
<script src="//c22.travelpayouts.com/content?promo_id=1586&shmarker=264084&locale=en&view=detail&color_scheme=blue&h=Transfer%20bookings&n_ap=&n_re=&powered_by=false" charset="utf-8"></script>
</div>
<?php include $themeurl. 'views/blog/featured.php' ;?>
<?php echo run_widget(81); ?>
<?php include $themeurl. 'views/modules/hotels/standard/featured.php';?>
<?php include $themeurl. 'views/modules/flights/standard/featured.php';?>
<?php include $themeurl. 'views/modules/tours/standard/featured.php';?>
<?php include $themeurl. 'views/modules/extra/offers/featured.php';?>
<?php include $themeurl. 'views/modules/cars/standard/featured.php'; ?>
</div>
My question is how can I create a href text or some kind of buttons in the header that just scrolls to the specific script, iframe or php file loaded in views/home/index.php?
I hope that you understood, and I hope that you can help me solve my problem.