Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter barbje

    (@barbje)

    where can i find this cache file exactly ?

    Thread Starter barbje

    (@barbje)

    i implemented your code but it still does not change the language
    can u check pls ?

    thx

    Thread Starter barbje

    (@barbje)

    thx Corrina

    but what about this line <h2><?php echo pll__(‘Nieuws/News/Nouvelles’); ?></h2>

    how does he get the right echo to display on the page ?
    as if i only leave ‘News’ on this line he only displays News on every language

    thx

    Thread Starter barbje

    (@barbje)

    thx i am trying to implement it but no luck so far
    so any help is appreciated

    here is the full content of the page-home.php

    <?php
    /**
     * Template Name: Homepage
     */
    
    get_header(); ?>
    
    <section class="slider">
    	<?php if (get_field('slider')): ?>
    		<?php the_field('slider'); ?>
    	<?php else: ?>
    		<img src="<?php echo get_template_directory_uri(); ?>/assets/slider.jpg" alt="">
    	<?php endif; ?>
    	
    </section> 
    
    <div class="main-content">
    	<div class="container">
    		<div class="row">
    			<div class="main-content-inner col-sm-12">
    
    	<div class="row">
    		<div class="col-md-6">
    			
    			<?php 
    				$foto1 = get_field('foto_1'); 
    				$alt = $foto1['alt'];
    				$thumb1 = $foto1['sizes'][ 'regular' ];
    			 ?>
    			<?php if ($foto1): ?>
    			<div class="animate">
    				<hr class="b1">
    				<img src="<?php echo $thumb1; ?>" alt="<?php echo $alt; ?>">
    			</div>
    			<?php endif; ?>
    			
    			<div class="bbg2 hblock2 home-block animate module ">
    				<hr class="b1">
    				<?php the_field('block_2'); ?>
    			</div>
    		</div>
    		<div class="col-md-6">
    			<div class="bbg1 hblock1 home-block animate ">
    				<hr class="b1">
    				<?php the_field('block_1'); ?>
    			</div>
    		</div>
    	</div>
    
    			</div><!-- close .*-inner (main-content or sidebar, depending if sidebar is used) -->
    		</div><!-- close .row -->
    	</div><!-- close .container -->
    </div><!-- close .main-content -->
    
    			<?php 
    				$foto2 = get_field('foto_2'); 
    				$alt = $foto2['alt'];
    				$thumb2 = $foto2['sizes'][ 'home-bg' ];
    			 ?>
    <div class="main-content parallax white"  style="background-image:url(<?php echo $thumb2; ?>);">
    	<div class="container">
    		<div class="row">
    			<div class="main-content-inner col-md-6 col-md-offset-4">
    				<div class="bbg3 hblock3 home-block animate ">
    					<hr class="b1">
    					<?php the_field('block_3'); ?>
    				</div>
    					
    			</div><!-- close .*-inner (main-content or sidebar, depending if sidebar is used) -->
    		</div><!-- close .row -->
    	</div><!-- close .container -->
    </div><!-- close .main-content -->
    
    <div class="main-content">
    	<div class="container">
    
    <?php 
    
    // WP_Query arguments
    $args = array (
    	'post_type'              => array( 'post' ),
    	'posts_per_page'         => '1',
    );
    
    // The Query
    $query = new WP_Query( $args );
    
    // The Loop
    if ( $query->have_posts() ) {
    	while ( $query->have_posts() ) {
    		$query->the_post(); ?>
    			<div class="main-content-inner col-md-7">
    				<div class="home-block animate">
    				<hr class="b1">
    				<h2><?php echo pll__('Nieuws/News/Nouvelles'); ?></h2>
    				
    				
    				<h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
    				<p><?php the_excerpt(); ?></p>
    				<a href="<?php if( get_option( 'show_on_front' ) == 'page' ) echo get_permalink( get_option('page_for_posts' ) );
    else echo bloginfo('url');?>" class="btn"><?php echo pll__('Meer Nieuws/More News/Encore des Nouvelles'); ?></a>
    				</div>
    			</div>
    
    <?php 	}
    } else {
    	// no posts found
    }
    
    // Restore original Post Data
    wp_reset_postdata();
    
     ?>
    
    <?php get_footer(); ?>
    Thread Starter barbje

    (@barbje)

    i have polylang as plugin

    Thread Starter barbje

    (@barbje)

    thx Jacques

    Thread Starter barbje

    (@barbje)

    anyone ?

    Thread Starter barbje

    (@barbje)

    thx Jacques that worked !

    barbje

    (@barbje)

    can you please look why my site is not responsive on mobile device ?

    https://www.jbi.be

    thx

    Thread Starter barbje

    (@barbje)

    got it working finally ??

    Thread Starter barbje

    (@barbje)

    before i go i send you my code
    all lines like name, address etc… works but the datepicker fails to mail the chosen dates…

    in Formtab;

    <fieldset>

    1. Naam en voornaam [text cf7s-name]
    2. Volledig adres[text cf7s-address]
    3. Email [email cf7s-email]
    4. Aantal personen (min. 2 – max.6) [text* cf7s-number]
    5. Aankomstdatum (wij verhuren van zaterdag t/m zaterdag) <input type id=”date-field” name=”date-field”/>
    6. Vertrekdatum (wij verhuren van zaterdag t/m zaterdag) <input type class=”calendar-field” name=”calendar-field”/>
    7. in Mailtab;

      Van: [cf7s-name]
      Email: [cf7s-email]
      Adres: [cf7s-address]

      Aantal Personen: [cf7s-number]

      Aankomstdatum: [cf7s-date-field]

      Vertrekdatum: [cf7s-calendar-field]

    Thread Starter barbje

    (@barbje)

    i dont get it to work

    i am leaving now for 3 days abroad, will contact u later if i need to
    thx for ur help so far

    Thread Starter barbje

    (@barbje)

    i have this now

    • arrival date (from saturday-saturday) <input type id=”date-field”/>
    • i tried so many other options but no luck

    Thread Starter barbje

    (@barbje)

    hi Fahad

    i did what you said but no luck
    this is what i receive then in my mailbox

    Aantal Personen: 5

    Aankomstdatum: [date-field]

    Vertrekdatum: [calendar-field]

    Hebt u al eerder geboekt bij ons?: Nee

    so date and calendar should be the chosen dates

Viewing 14 replies - 1 through 14 (of 14 total)