mayurjango
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Hueman] Add Adsense ad in middle of posts on index pageIt’s not a synchronization issue but some issue with code.
I replaced your code with the above mentioned code in reply #4 but that hides all the posts from index page and just shows the adsense ad there.
This is the original index.php code:
<?php get_header(); ?> <section class="content"> <?php get_template_part('inc/page-title'); ?> <div class="pad group"> <?php get_template_part('inc/featured'); ?> <?php if ( have_posts() ) : ?> <div class="post-list group"> <?php $i = 1; echo '<div class="post-row">'; while ( have_posts() ): the_post(); ?> <?php get_template_part('content'); ?> <?php if($i % 2 == 0) { echo '</div><div class="post-row">'; } $i++; endwhile; echo '</div>'; ?> </div><!--/.post-list--> <?php get_template_part('inc/pagination'); ?> <?php endif; ?> </div><!--/.pad--> </section><!--/.content--> <?php get_sidebar(); ?> <?php get_footer(); ?>
Could you please tell what code and where should I add it exactly? Would be really helpful!
Forum: Themes and Templates
In reply to: [Hueman] Add Adsense adsYes, as bdbrown says the adsense code has to be added in the test widget to the sidebar you’ve created. I’m using it.
Forum: Themes and Templates
In reply to: [Hueman] Add Adsense ad in middle of posts on index pageThanks bdbrown, I’ve got it working up to a certain extent but ad isn’t appearing.
I’m using Alex’s theme widget option instead of the plugin (that uses shortcode). That’s probably the reason ad isn’t appearing but the code is showing up on home page after 3 posts.
Please tell where should I add the theme widget php code in the below code to get it working.
<div class="post-list group"> <?php $i = 1; // initialize the post counter echo '<div class="post-row">'; // create the post-row div while ( have_posts() ): the_post(); ?> <!-- while we have posts --> <?php get_template_part('content'); ?> <!-- display the post --> <?php if ($i % 2 == 0) { // if we've shown 2 posts echo '</div>'; // close this post-row div // BEGIN insert my custom widget after 4 posts if ($i % 4 == 0) { // if we've displayed 4 posts echo '<div id="my-widget">'; // create the widget div echo do_shortcode ( '[widget id="text-3"]' ); // show the widget echo '</div>'; // close the widget div } // END insert my custom widget echo '<div class="post-row">'; // create the next post-row div } $i++; // increment the post counter endwhile; echo '</div>'; // close the trailing post-row div ?> </div><!--/.post-list-->
The theme ad widget code is
<?php dynamic_sidebar('abovepost-ad'); ?>
Test site: https://test.webtrickz.com
Forum: Themes and Templates
In reply to: [Hueman] Top Menu bar should be just one line?Referring to #3 by bdbrown, I reduced the space between menu items from 14px to 13px. Btw.. why you don’t recommend this?
Forum: Themes and Templates
In reply to: [Hueman] Change topbar menu link and search icon hover colorAwesome.. That worked as I wanted.
Thanks bdbrown
Forum: Themes and Templates
In reply to: [Hueman] Change topbar menu link and search icon hover colorI just want to change menu links hover color to red and keep the active menu as white as I’ve it now. Also, want to change hover color of search icon to red.
Forum: Themes and Templates
In reply to: [Hueman] Add Adsense ad just below every post contentHi, I’ve fixed it by changing the below css code:
.entry ins { background: #fff486; }
to
.entry ins { background: transparent; }
??
Okay. Thank you!
Forum: Themes and Templates
In reply to: [Hueman] Add Adsense ad just below every post contentThanks bdbrown. The first one isn’t an asynchronous adsense ad code but second one is. But I’m not sure why it’s loading twice.
Could you please tell what should I try changing to sort this issue?
Forum: Themes and Templates
In reply to: [Hueman] change text color topbar menuHi bdbrown, sorry for interrupting in the thread but I want to ask a small question.
How to change the topbar menu link hover color? Also, how to change the hover color for search magnifying icon in top bar. Actually, I managed to do both but you can provide a shorter code for sure. ??
Thanks bdbrown,
I’ve installed the “Easy Add Thumbnail” plugin and it does the job pretty well but all thumbnails size aren’t same (after setting a featured image using plugin) in the theme.
I’ll discuss that in a new topic.
Hi bdbrown,
The issue isn’t present on test sites but is visible on smartphones. I tried on several phones and apparently the issue occurs on Chrome v39 for Android and not on Chrome v35.
But at the same time, the issue isn’t present on Hueman demo site on Chrome v39. Wondering what could be the real cause.
Look forward to your kind help. Thank you!
Hi bdbrown,
I’m having a similar problem. The sidebar toggles for both left and right sidebars don’t appear when viewing the site in landscape mode. Works fine on single post pages though. The site Max-width is set to 1250px.
Screenshot: https://i.imgur.com/znnftZw.png
This is the code that I used to swap the position of sidebars on index page, which is certainly causing this issue.
/* 3 column, content middle */ .col-3cm .main { background: url(img/sidebar/s-right-s2.png) repeat-y left 0; } .col-3cm .main-inner { background: url(img/sidebar/s-left.png) repeat-y right 0; padding-right: 340px; padding-left: 260px; } .col-3cm .s1 { float: right; margin-right: -340px; } .col-3cm .s2 { float: left; margin-left: -260px; /* ingenuity! */ position: relative; left: -100%; } .col-3cm .content { float: left; }
How can I fix it by still swapping the sidebars position?
Site: https://test.webtrickz.com/
Please help!
Forum: Themes and Templates
In reply to: [Hueman] Change sidebar background color completely till endThat worked! You’re awesome bdbrown. I can’t thank you enough, really appreciate your help. ??
But I want the separator to be simple in #EEEEEE without box shadow as the one in hueman theme here: https://i.imgur.com/tlzCg9w.png
Also, I separator only shows upto the widget area and doesn’t appears on index page. Plz look into it.
Thank You!!
Ok, I’ll leave it then for now.
But how can I change the background color of search on hover and also is it possible to add “Search here” text next to search icon in top menu bar for better visibility?
Thanks