acosmin
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [JustWrite] Remove "Menu title" and "Underline" in pageOpen style.css, find:
.single-template-1 .single-content { position: relative; padding-top: 35px; border-top-width: 5px; border-top-style: solid; line-height: 145%; -webkit-hyphens: auto; -moz-hyphens: auto; -ms-hyphens: auto; hyphens: auto; -ms-word-wrap: break-word; word-wrap: break-word; }Add this bellow:
.page .single-template-1 .single-content { border-top-width: 0px; }Forum: Themes and Templates
In reply to: [JustWrite] Is there a way to hide the tagline?Open style.css, find:
.logo .description { letter-spacing: 0; font-size: 14px; font-weight: 700; text-transform: none; font-style: italic; line-height: 36px; margin-left: 20px; }Replace with:
.logo .description { letter-spacing: 0; font-size: 14px; font-weight: 700; text-transform: none; font-style: italic; line-height: 36px; margin-left: 20px; display: none; }Forum: Themes and Templates
In reply to: [JustWrite] WooCommerceHi! Sorry, It’s not compatible with WooCommerce, I didn’t actually advertise anywhere that it is.
You could find someone on http://jobs.wordpress.net/ to make it work.
Forum: Themes and Templates
In reply to: [JustWrite] No titles for color pickers in the customizer?Hi! I know it can be a little hard to find the right color for the right element but that’s how it is at the moment.
I’m planning on restructuring the Customizer page.
Sorry for any inconvenience!
It’s not a theme related issue. You need to know how to implement those og tags. I also don’t know what plugins you’ve tried, you should ask the plugin developer if it doesn’t work.
Try adding these lines in
functions.php:function ac_og_meta() { if( is_single() ) { $title = get_the_title(); $thumb = wp_get_attachment_url( get_post_thumbnail_id() ); echo '<meta property="og:image" content="' . $thumb . '" />'; echo '<meta property="og:title" content="' . $title . '" />'; } } add_action( 'wp_head', 'ac_og_meta', 1 );I am sorry but it’s the last time I answer on this subject. If you need professional help you can try: jobs.wordpress.net
As I said this is not a theme related issue and also as a theme developer I am not allowed to include open graph meta tags (it won’t pass the review process because it’s “plugin territory”).
You can either find a WP plugin that works or try to implement the tags manually (all the info is in those two links I posted above).
Forum: Themes and Templates
In reply to: [JustWrite] Share Buttonshttp://www.acosmin.com/documentation/justwrite/
Tips Hacks section.
Try reading these docs:
https://developers.facebook.com/docs/plugins/checklist
https://developers.facebook.com/docs/sharing/reference/share-dialogFrom what I gather you need to add
og:imagesomewhere inheader.php.So open
header.phpand bellow:
<meta name="viewport" content="width=device-width, initial-scale=1" />add:
<?php if( is_single() ) { $thumb_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); echo '<meta property="og:image" content="' . $thumb_url . '" />'; } ?>Forum: Themes and Templates
In reply to: [JustWrite] Menu ribbon in mobile viewYou could open
../assets/js/myscripts.jsand replace:// Sticky Menu function sticky_menu() { var nav = $('.menu-wrap'); nav_scrolled = false; spo_scrooled = false; if( !nav.hasClass('sticky-disabled') ) { if( $(window).width() > 1140 ) { $(window).scroll(function () { if (220 <= $(window).scrollTop() && !nav_scrolled && $(window).width() > 1140) { if( $('body').hasClass('admin-bar') ) { nav.removeAttr('style').addClass('visible').css('top', 28); } else { nav.removeAttr('style').addClass('visible') } nav_scrolled = true; } if (220 >= $(window).scrollTop() && nav_scrolled) { if( $('body').hasClass('admin-bar') ) { nav.removeClass('visible').css('top', 0); } else { nav.removeClass('visible'); } nav_scrolled = false; } if (320 <= $(window).scrollTop() && !spo_scrooled) { $('.header-social-icons').css('display', 'block').animate({'marginRight': 0}, 100); spo_scrooled = true; } if (320 >= $(window).scrollTop() && spo_scrooled) { $('.header-social-icons').animate({ 'marginRight': 20 }, 100, function() { $('.header-social-icons').hide().css({ 'marginRight': 0 }); }).show(); spo_scrooled = false; } }); } else { $('.menu-wrap').removeClass('visible'), nav_scrolled = false, $('.header-social-icons').removeAttr('style'), spo_scrooled = false; } } } sticky_menu(); if( $('body').hasClass('admin-bar') ) { $('.visible').css('top', 100); }with:
// Sticky Menu function sticky_menu() { var nav = $('.menu-wrap'); nav_scrolled = false; spo_scrooled = false; if( !nav.hasClass('sticky-disabled') ) { $(window).scroll(function () { if (220 <= $(window).scrollTop() && !nav_scrolled) { if( $('body').hasClass('admin-bar') ) { nav.removeAttr('style').addClass('visible').css('top', 28); } else { nav.removeAttr('style').addClass('visible') } nav_scrolled = true; } if (220 >= $(window).scrollTop() && nav_scrolled) { if( $('body').hasClass('admin-bar') ) { nav.removeClass('visible').css('top', 0); } else { nav.removeClass('visible'); } nav_scrolled = false; } if (320 <= $(window).scrollTop() && !spo_scrooled) { $('.header-social-icons').css('display', 'block').animate({'marginRight': 0}, 100); spo_scrooled = true; } if (320 >= $(window).scrollTop() && spo_scrooled) { $('.header-social-icons').animate({ 'marginRight': 20 }, 100, function() { $('.header-social-icons').hide().css({ 'marginRight': 0 }); }).show(); spo_scrooled = false; } }); } } } sticky_menu(); if( $('body').hasClass('admin-bar') ) { $('.visible').css('top', 100); }I don’t know if it will work 100%. I must tell you that I am not responsible for any issues in mobile view.
If you would like custom work done you can try:
http://jobs.wordpress.net/I am sorry but I can’t offer support for 3rd party plugins. You can check with the plugin developer.
Forum: Themes and Templates
In reply to: [JustWrite] Featured Posts Slider show nothingOpen
/page-templates/template-page.php, find:<section class="content-wrap clearfix" role="main">Add this bellow it:
<?php if ( of_get_option( 'ac_show_slider' ) && is_front_page() && ac_featured_posts_count() > 2 ) { get_template_part( 'featured-content' ); } ?>You need 3 or more featured posts for it to show up.
Forum: Themes and Templates
In reply to: [JustWrite] Page Numbers Increasing but No postsIn
functions.phptry adding this:/* Index Pagination /* ------------------------------------ */ if ( ! function_exists( 'ac_paginate_index' ) ) { function ac_paginate_index() { if ( $new_query->max_num_pages < 2 ) { return; } $paged = get_query_var( 'paged' ) ? intval( get_query_var( 'paged' ) ) : 1; $pagenum_link = html_entity_decode( get_pagenum_link() ); $query_args = array(); $url_parts = explode( '?', $pagenum_link ); if ( isset( $url_parts[1] ) ) { wp_parse_str( $url_parts[1], $query_args ); } $pagenum_link = remove_query_arg( array_keys( $query_args ), $pagenum_link ); $pagenum_link = trailingslashit( $pagenum_link ) . '%_%'; $format = $GLOBALS['wp_rewrite']->using_index_permalinks() && ! strpos( $pagenum_link, 'index.php' ) ? 'index.php/' : ''; $format .= $GLOBALS['wp_rewrite']->using_permalinks() ? user_trailingslashit( 'page/%#%', 'paged' ) : '?paged=%#%'; $links = paginate_links( array( 'base' => $pagenum_link, 'format' => $format, 'total' => $new_query->max_num_pages, 'current' => $paged, 'mid_size' => 1, 'add_args' => array_map( 'urlencode', $query_args ), 'prev_text' => __( '← Previous', 'acosmin' ), 'next_text' => __( 'Next →', 'acosmin' ), ) ); if ( $links ) : ?> <nav class="posts-pagination clearfix" role="navigation"> <div class="paging-wrap"> <?php echo $links; ?> </div><!-- END .paging-wrap --> </nav><!-- .posts-pagination --> <?php endif; } }In index.php change contents with:
<?php /* ------------------------------------------------------------------------- * * Index template /* ------------------------------------------------------------------------- */ ?> <?php get_header(); ?> <section class="container<?php ac_mini_disabled() ?> clearfix"> <?php get_sidebar( 'browse' ); ?> <div class="wrap-template-1 clearfix"> <section class="content-wrap" role="main"> <?php if ( of_get_option( 'ac_show_slider' ) && is_front_page() && !is_paged() && ac_featured_posts_count() > 2 ) { get_template_part( 'featured-content' ); } ?> <div class="posts-wrap clearfix"> <?php $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1; $args = array( 'cat' => -2691, 'posts_per_page' => 6, 'paged' => $paged ); $new_query = new WP_Query( $args ); if ( $new_query->have_posts() ) : while ( $new_query->have_posts() ) : $new_query->the_post(); get_template_part( 'post-templates/content' ); endwhile; else : get_template_part( 'post-templates/content', 'no-articles' ); endif; ?> </div><!-- END .posts-wrap --> <?php ac_paginate_index(); wp_reset_postdata(); ?> </section><!-- END .content-wrap --> <?php get_sidebar(); ?> </div><!-- END .wrap-template-1 --> </section><!-- END .container --> <?php get_footer(); ?>Forum: Themes and Templates
In reply to: [JustWrite] Page Numbers Increasing but No postsI see “GADGETS SPECIFICATIONS” is removed, it doesn’t appear anymore.
Forum: Themes and Templates
In reply to: [JustWrite] Featured Posts Slider show nothingWhere do you want the slider to appear? Your index is a static page from what I can see and that’s the only place it can show up.
Forum: Themes and Templates
In reply to: [JustWrite] Menu ribbon in mobile viewHi! Yes, in mobile view the header isn’t ‘sticky’.