Respostas no Fórum

Visualizando 8 respostas - 1 até 8 (de um total de 8)
  • Criador do tópico milenne

    (@milenne)

    HudsonLG, obrigada pela força.

    eu consegui de alguma forma aqui.

    agora são detalhes e pequenos errinhos, como por exemplo a interrogação que aparece no inicio de cada post.

    deve ser um caractere solto no código do site. vc sabe qual é esse código.
    obrigada mais uma vez.

    Criador do tópico milenne

    (@milenne)

    /**
    * Adjusts content_width value for full-width and single image attachment
    * templates, and when there are no active widgets in the sidebar.
    *
    * @version Celestial Lite 1.0
    */
    function celestial_lite_content_width() {
    if ( is_page_template( ‘templates/page-full-width.php’ ) || is_attachment() || ! is_active_sidebar( ‘sidebar-7’ ) ) {
    global $content_width;
    $content_width = 1170;
    }
    }
    add_action( ‘template_redirect’, ‘celestial_lite_content_width’ );

    /**
    * Returns a “Continue Reading” link for excerpts
    * @author WordPress.org
    * @version 1.0.0 – 05.02.2012
    * @param string $more
    * @return string
    */
    function celestial_lite_continue_reading_link() {
    return ‘ ‘ . __( ‘Continuar lendo / Continue reading…’, ‘celestial-lite’ ) . ‘‘;

    }
    /**
    * Replaces “[…]” (appended to automatically generated excerpts) with an ellipsis and celestial_lite_continue_reading_link().
    * To override this in a child theme, remove the filter and add your own
    * function tied to the excerpt_more filter hook.
    * @author WordPress.org
    * @version 1.0.0 – 05.02.2012
    * @param string $more
    * @return string
    */
    function celestial_lite_auto_excerpt_more( $more ) {
    return ‘…’ . celestial_lite_continue_reading_link();
    }
    add_filter( ‘excerpt_more’, ‘celestial_lite_auto_excerpt_more’ );

    /**
    * Adds a pretty “Continue Reading” link to custom post excerpts.
    * To override this link in a child theme, remove the filter and add your own
    * function tied to the get_the_excerpt filter hook.
    * @author WordPress.org
    * @version 1.0.0 – 05.02.2012
    * @param string $output
    * @return string
    */
    function celestial_lite_custom_excerpt_more( $output ) {
    if ( has_excerpt() AND ! is_attachment() ) {
    $output .= celestial_lite_continue_reading_link();
    }
    return $output;
    }
    add_filter( ‘get_the_excerpt’, ‘celestial_lite_custom_excerpt_more’ );

    /**
    * Move the More Link outside the default content paragraph.
    * Special thanks to http://nixgadgets.vacau.com/archives/134
    */
    function celestial_lite_new_more_link($link) {
    $link = ‘<p class=”more-link”>’.$link.'</p>’;
    return $link;
    }

    add_filter(‘the_content_more_link’, ‘celestial_lite_new_more_link’);

    if ( ! function_exists( ‘celestial_lite_post_nav’ ) ) :
    /**
    * Displays navigation to next/previous single post or page when applicable.
    * @version Celestial Lite 1.0
    */
    function celestial_lite_post_nav( $nav_id ) {
    global $wp_query;
    if ( $wp_query->max_num_pages > 1 ) : ?>
    <nav id=”<?php echo $nav_id; ?>” class=”navigation” role=”navigation”>
    <h3 class=”assistive-text”><?php _e( ‘Post navigation’, ‘celestial-lite’ ); ?></h3>
    <div class=”nav-previous alignleft”><?php next_posts_link( __( ‘<span class=”meta-nav”>←</span> Older posts’, ‘celestial-lite’ ) ); ?></div>
    <div class=”nav-next alignright”><?php previous_posts_link( __( ‘Newer posts <span class=”meta-nav”>→</span>’, ‘celestial-lite’ ) ); ?></div>
    </nav><!– #<?php echo $nav_id; ?> .navigation –>
    <?php endif;
    }
    endif;
    /**
    * Displays navigation to next/previous posts or pages when applicable.
    * @version Celestial lite 1.0
    */
    function celestial_lite_content_nav( $nav_id ) {
    global $wp_query;
    $big = 999999999; // need an unlikely integer
    echo paginate_links( array(
    ‘base’ => str_replace( $big, ‘%#%’, esc_url( get_pagenum_link( $big ) ) ),
    ‘format’ => ‘?paged=%#%’,
    ‘prev_next’ => True,
    ‘prev_text’ => __(‘Previous’, ‘celestial-lite’),
    ‘next_text’ => __(‘Next’, ‘celestial-lite’),
    ‘type’ => ‘list’,
    ‘current’ => max( 1, get_query_var(‘paged’) ),
    ‘total’ => $wp_query->max_num_pages
    ) );
    }

    // Stops WordPress from going to middle of full post view – very irrating. Thanks to http://digwp.com
    function celestial_lite_remove_more_jump_link($link) {
    $offset = strpos($link, ‘#more-‘);
    if ($offset) {
    $end = strpos($link, ‘”‘,$offset);
    }
    if ($end) {
    $link = substr_replace($link, ”, $offset, $end-$offset);
    }
    return $link;
    }
    add_filter(‘the_content_more_link’, ‘celestial_lite_remove_more_jump_link’);

    /**
    * Add postMessage support for site title and description for the Theme Customizer.
    * @version Celestial Lite 1.0
    * @param WP_Customize_Manager $wp_customize Theme Customizer object.
    * @return void
    */
    function celestial_lite_customize_register( $wp_customize ) {
    $wp_customize->get_setting( ‘blogname’ )->transport = ‘postMessage’;
    $wp_customize->get_setting( ‘blogdescription’ )->transport = ‘postMessage’;
    }
    add_action( ‘customize_register’, ‘celestial_lite_customize_register’ );

    /**
    * Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
    *
    * @version Celestial Lite 1.0
    */
    function celestial_lite_customize_preview_js() {
    wp_enqueue_script( ‘celestial-customizer’, get_template_directory_uri() . ‘/js/theme-customizer.js’, array( ‘customize-preview’ ), ‘20120827’, true );
    }
    add_action( ‘customize_preview_init’, ‘celestial_lite_customize_preview_js’ );

    /**
    * Tests if any of a post’s assigned categories are descendants of target categories
    *
    * @param int|array $cats The target categories. Integer ID or array of integer IDs
    * @param int|object $_post The post. Omit to test the current post in the Loop or main query
    * @return bool True if at least 1 of the post’s categories is a descendant of any of the target categories
    * @see get_term_by() You can get a category by name or slug, then pass ID to this function
    * @uses get_term_children() Passes $cats
    * @uses in_category() Passes $_post (can be empty)
    * @version 2.7
    * @link http://codex.wordpress.org/Function_Reference/in_category#Testing_if_a_post_is_in_a_descendant_category
    * Special thanks to Michal Ochman http://blog.scur.pl/ for modifying this to use the category name instead of ID
    */

    if ( ! function_exists( ‘celestial_lite_post_is_in_descendant_category’ ) ) {
    function celestial_lite_post_is_in_descendant_category( $cats, $_post = null ) {
    foreach ( (array) $cats as $cat ) {
    // get_term_children() accepts integer ID only
    if ( is_string( $cat ) ) {
    $cat = get_term_by( ‘slug’, $cat, ‘category’ );
    if ( ! isset( $cat, $cat->term_id ) )
    continue;
    $cat = $cat->term_id;
    }
    $descendants = get_term_children( (int) $cat, ‘category’ );
    if ( $descendants && in_category( $descendants, $_post ) )
    return true;
    }
    return false;
    }
    }

    /**
    * Lets strip the styles out of the default WP Gallery because they should not be loading in the content
    * Then we will have our own styled from the theme
    */
    function celestial_lite_remove_gallery_css( $css ) {
    return preg_replace( “#<style type=’text/css’>(.*?)</style>#s”, ”, $css );
    }
    add_filter( ‘gallery_style’, ‘celestial_lite_remove_gallery_css’ );

    Criador do tópico milenne

    (@milenne)

    Amigo, infelizmente não funcionou. há alguma outra alternativa?
    Obrigada

    Criador do tópico milenne

    (@milenne)

    o que eu faço? colo ele aqui?

    Criador do tópico milenne

    (@milenne)

    JÁ ESTOU COM O SITE SEMI PRONTO E NÃO CONSIGO SABER O QUE É ESSE ERRO.

    Criador do tópico milenne

    (@milenne)

    estou utilizando o theme celestial. por favor me ajudem. obrigada

    Criador do tópico milenne

    (@milenne)

    ninguem ajuda

    Fórum: Plugins
    Em resposta a: Contact form 7

    Por Favor algum moderador ou um membro que saiba nos explicar como o smtp funciona? ou mesmo como solucionar o problema do envio no contact form 7.?

    Preciso de ajuda aqui.

    Os e-mails não estão sendo enviados. mesmo ultilizando a configuração de smtp do hostgator.

    Vlw

Visualizando 8 respostas - 1 até 8 (de um total de 8)