Takkemike
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] Choose between widgets on languageProblem 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;?>Forum: Fixing WordPress
In reply to: breadcrumb not workingPretty 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> » 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> » 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> » Link: <?=$post->post_title?> <? } ?> </div> <? } elseif($post->ID == 2): { echo (''); } else: { echo the_title(); ?> <?} endif; ?>Maybe it contains pieces for anyone.
Hope it helps 😉Forum: Fixing WordPress
In reply to: breadcrumb not workingWow, 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.
Forum: Fixing WordPress
In reply to: Links and css not showing with MAMPGetting close now 🙂
Thank you for the support!Forum: Fixing WordPress
In reply to: Links and css not showing with MAMPPartly 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.
Forum: Fixing WordPress
In reply to: Links and css not showing with MAMPMaybe 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.
Forum: Fixing WordPress
In reply to: Links and css not showing with MAMPDid 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.
Forum: Fixing WordPress
In reply to: Links and css not showing with MAMPThanks! 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.