superskill
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: get_header action not workingHi @girlieworks! Thanks for the reply. I know about
get_header( 'newtmpl' );
, my issue isn’t that. The goal is to change the theme’s header, but wouldn’t it be easier to manage all this with that action hook.If I add a select box in my theme to choose from different headers, I would like to use that hook instead of doing something like:
$header_name = get_theme_mod('option_name'); get_header( $header_name );
The above code would mean that I have to add
$header_name
in every file whereget_header()
is.- This reply was modified 8 years, 2 months ago by superskill.
Forum: Fixing WordPress
In reply to: selective_refresh issueSo the solution is:
'render_callback' => function() use ( &$setting_id ) {
??Opend
index.php
, find:if ( have_posts() ) : while ( have_posts() ) : the_post(); get_template_part( 'post-templates/content' ); endwhile; else : get_template_part( 'post-templates/content', 'no-articles' ); endif;
change it with:
if ( have_posts() ) : $count = 0; while ( have_posts() ) : the_post(); $count++; get_template_part( 'post-templates/content' ); if ($count == 1) : ?> <article class="post-template-1 clearfix"> YOUR GOOGLE AD CODE GOES HERE! </article> <?php endif; endwhile; else : get_template_part( 'post-templates/content', 'no-articles' ); endif;
Forum: Themes and Templates
In reply to: AcosminTECH – free for downloadIt depends ?? thq you for the comment
Forum: Themes and Templates
In reply to: 3 column and rounded cornersYou can try one of my wordpress themes > Acosmin v3.1. It is simple, widgets ready but it hasn’t tabs/dropdown-menu.
Forum: Themes and Templates
In reply to: AcosminMAG – new wordpress themeI updated this wordpress theme, so for those who use it, please download the new version ??
Forum: Themes and Templates
In reply to: AcosminMAG – new wordpress themeGPL and no sponsored links
Forum: Themes and Templates
In reply to: AcosminMAG – new wordpress themeThx guys for the comments and suggestions. I’ve updated the theme, because it had a few bugs on the categories and tags pages, so it should work fine now.
Forum: Themes and Templates
In reply to: AcosminMAG – new wordpress themeThose ad spots are simple to remove ?? thq for the comment
Forum: Themes and Templates
In reply to: My new wp theme – acosmin v4thx ! ?? any othe opinions
Forum: Fixing WordPress
In reply to: Recent news from another blogNo one knows?
Forum: Fixing WordPress
In reply to: Recent news from another blogwell I don’t need a widget. I was thinking about some php (plugin) or something. Thx