Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Takkemike

    (@takkemike)

    Problem solved! This worked:

    <?php $currentlang = pll_current_language();?>
    <?php if ( $currentlang == ‘nl’ ) : ?>
    <?php if ( ! dynamic_sidebar( ‘sidebar-1’ ) ) : ?>
    <div id=”widget-left” /* classes: zie functions.php */ role=”contentinfo”>
    <?php get_content();?>
    </div>
    <?php endif;?>
    <?php else:?>
    <?php if ( ! dynamic_sidebar( ‘sidebar-2’ ) ) : ?>
    <div id=”widget-left” /* classes: zie functions.php */ role=”contentinfo”>
    <?php get_content();?>
    </div>
    <?php endif;?>
    <?php endif;?>

    Thread Starter Takkemike

    (@takkemike)

    Pretty soon after posting this topic, the following code got it working. (It may be pretty messy, but it’s purely to be of help to anyone who has a similar problem). Esmi’s code is probably far cleaner, but unfortunately not in this case, because of the many sideways.

    <?php
    if($post->ID ==  x): { ?>
        	<div class="myawesomeclass">
    					<?php if( $post->post_type == 'post_type1' ) { ?>
    						<a href="#"><div class="myawesomeclass"></div></a>  &raquo Link: <?=$post->post_title?>
    						<? } ?>
    				</div>
    
      	<? } elseif($post->ID ==  x):  { ?>
    
      	 	<div class="bloghoofd">
    
    					<?php if( $post->category_name == 'category_slug' ) { ?>
    						<a href="/##"><div class="myawesomeclass"></div></a> &raquo Link: <?=$post->post_title?>
    					<? } ?>
    				</div>
    
      	<? } elseif($post->ID ==  x):  {?>
    	   <div class="myawesomeclass"></div>
    
    	<? } elseif($post->ID ==  x):  {?>
    	   <div id=class="myawesomeclass"></div>
    
    	<? } elseif($post->ID == x):  {?>
    	   <div class="myawesomeclass">
    	   				<a href="/###"><div class="myawesomeclass"> Link: </div></a>
    	   				</div>
    	<? } elseif( in_category( 'blog' ) ): { ?>
    	   <a href="/####">
    	   				<div class="myawesomeclass"> Link: </div></a> 
    
    	<? } elseif($post->ID > x):  {?>
    	   <div class="myawesomeclass">
    					<?php if( $post->post_type == 'post_type2' ) { ?>
    						<a href="/#####"><div class="myawesomeclass"></div></a> &raquo Link: <?=$post->post_title?>
    						<? } ?>
    		</div>	
    
    	<? } elseif($post->ID ==  2):  {
    	   echo ('');
    
    	 } else: {
    	    echo the_title(); ?>
    		<?}
    endif;
    ?>

    Maybe it contains pieces for anyone.
    Hope it helps 😉

    Thread Starter Takkemike

    (@takkemike)

    Wow, that’s a pretty drastic change! Thank you very much.
    Also for the tips.

    I’ll look into this code and post any further steps/obstacles/solutions for assistance.

    Thread Starter Takkemike

    (@takkemike)

    Getting close now 🙂
    Thank you for the support!

    Thread Starter Takkemike

    (@takkemike)

    Partly solved… I bluntly put the missing image in a browser and copied the path to img src. Chopping off bits lead to the image popping up. This path is the one I have to give to the css.

    Still I have no clue how (or if) this path should be copied to the WordPress URL in settings.

    Thread Starter Takkemike

    (@takkemike)

    Maybe it’s good to add that the folder I put the WordPress sites in are not in the Applications>MAMP>htdocs, but somewhere else on my HD.

    Thread Starter Takkemike

    (@takkemike)

    Did you mean whether they have a class? If so, yes the do. Also I typed some blabla in the header.php to make sure there shows up anything.

    (Sorry, I had a phone call) The installation seemed pretty good. I’m working from scratch with a custom theme which is pretty clean at the moment. But I guess the paths are incorrect.

    Thread Starter Takkemike

    (@takkemike)

    Thanks! Just tried this and immediately had to re-login. (The imputfields for WordPress were yellow instead of pink, by the way) Unfortunately, this didn’t solve the broken links.

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