Forum Replies Created

Viewing 15 replies - 76 through 90 (of 143 total)
  • You gave a link to the documentation for theme developers, which provides instructions for adapting the created theme and menu. I tried on a test site and my menu is working correctly. I can’t understand why this is not working for you. Astra theme developers are sure to tell you how to do better. Removing a hamburger is quite simple, but this is not the right decision.

    .ast-header-break-point.ast-header-custom-item-outside .ast-mobile-header-inline .ast-mobile-menu-buttons {
        display: none;
    }

    I tried to install the plugin “Max Mega Menu”, and everything works correctly for me. You can remove the hamburger using CSS, but I would like to understand the reason.
    I do not see these #header .top-header .header-navigation classes.
    Remove the hamburger is not an option. I think you need to wait for an answer from the developers of the magnificent Astra theme.

    I think it’s better:

    .ast-footer-overlay{
        padding-top: 1em;
           padding-bottom: 1em;
    }
    

    This is not my code. These are the functions of the Astra theme. I just added the output of the avatar. To display the gravatar you need to add get_the_author_meta (‘user_email’). In the last code (it works for me), replace in this part of the code:

    case 'author':
    					$author = get_the_author();
    					if ( ! empty( $author ) ) {
    						$output_str .= ( 1 != $loop_count && '' != $output_str ) ? ' ' . $separator . get_avatar( get_the_author_meta('user_email'), 30, '', '', array('class'=>'my_class') ) . ' ' : '';
    						$output_str .= esc_html( astra_default_strings( 'string-blog-meta-author-by', false ) ) . astra_post_author();
    					}
    					break;

    But Astra theme developers have suggested better. I’m just an amateur.
    Screenshot

    add class

    if ( ! function_exists( 'astra_get_post_meta' ) ) {
    
    	/**
    	 * Post meta
    	 *
    	 * @param  string $post_meta Post meta.
    	 * @param  string $separator Separator.
    	 * @return string            post meta markup.
    	 */
    	function astra_get_post_meta( $post_meta, $separator = '/' ) {
    
    		$output_str = '';
    		$loop_count = 1;
    
    		$separator = apply_filters( 'astra_post_meta_separator', $separator );
    
    		foreach ( $post_meta as $meta_value ) {
    
    			switch ( $meta_value ) {
    
    				case 'author':
    					$author = get_the_author();
    					if ( ! empty( $author ) ) {
    						$output_str .= ( 1 != $loop_count && '' != $output_str ) ? ' ' . $separator . get_avatar( $user_ID, 30, '', '', array('class'=>'my_class') ) . ' ' : '';
    						$output_str .= esc_html( astra_default_strings( 'string-blog-meta-author-by', false ) ) . astra_post_author();
    					}
    					break;
    
    				case 'date':
    					$output_str .= ( 1 != $loop_count && '' != $output_str ) ? ' ' . $separator . ' ' : '';
    					$output_str .= astra_post_date();
    					break;
    
    				case 'category':
    					$category = astra_post_categories();
    					if ( '' != $category ) {
    						$output_str .= ( 1 != $loop_count && '' != $output_str ) ? ' ' . $separator . ' ' : '';
    						$output_str .= $category;
    					}
    					break;
    
    				case 'tag':
    					$tags = astra_post_tags();
    					if ( '' != $tags ) {
    						$output_str .= ( 1 != $loop_count && '' != $output_str ) ? ' ' . $separator . ' ' : '';
    						$output_str .= $tags;
    					}
    					break;
    
    				case 'comments':
    					$comment = astra_post_comments();
    					if ( '' != $comment ) {
    						$output_str .= ( 1 != $loop_count && '' != $output_str ) ? ' ' . $separator . ' ' : '';
    						$output_str .= $comment;
    					}
    					break;
    				default:
    					$output_str = apply_filters( 'astra_meta_case_' . $meta_value, $output_str, $loop_count, $separator );
    
    			}
    
    			$loop_count ++;
    		}
    
    		return $output_str;
    	}
    }

    CSS
    .my_class {border-radius: 50%; margin-left: 3px;}

    Before “By”

    if ( ! function_exists( 'astra_get_post_meta' ) ) {
    
    	/**
    	 * Post meta
    	 *
    	 * @param  string $post_meta Post meta.
    	 * @param  string $separator Separator.
    	 * @return string            post meta markup.
    	 */
    	function astra_get_post_meta( $post_meta, $separator = '/' ) {
    
    		$output_str = '';
    		$loop_count = 1;
    
    		$separator = apply_filters( 'astra_post_meta_separator', $separator );
    
    		foreach ( $post_meta as $meta_value ) {
    
    			switch ( $meta_value ) {
    
    				case 'author':
    					$author = get_the_author();
    					if ( ! empty( $author ) ) {
    						$output_str .= ( 1 != $loop_count && '' != $output_str ) ? ' ' . $separator . get_avatar( $user_ID, 30 ) . ' ' : '';
    						$output_str .= esc_html( astra_default_strings( 'string-blog-meta-author-by', false ) ) . astra_post_author();
    					}
    					break;
    
    				case 'date':
    					$output_str .= ( 1 != $loop_count && '' != $output_str ) ? ' ' . $separator . ' ' : '';
    					$output_str .= astra_post_date();
    					break;
    
    				case 'category':
    					$category = astra_post_categories();
    					if ( '' != $category ) {
    						$output_str .= ( 1 != $loop_count && '' != $output_str ) ? ' ' . $separator . ' ' : '';
    						$output_str .= $category;
    					}
    					break;
    
    				case 'tag':
    					$tags = astra_post_tags();
    					if ( '' != $tags ) {
    						$output_str .= ( 1 != $loop_count && '' != $output_str ) ? ' ' . $separator . ' ' : '';
    						$output_str .= $tags;
    					}
    					break;
    
    				case 'comments':
    					$comment = astra_post_comments();
    					if ( '' != $comment ) {
    						$output_str .= ( 1 != $loop_count && '' != $output_str ) ? ' ' . $separator . ' ' : '';
    						$output_str .= $comment;
    					}
    					break;
    				default:
    					$output_str = apply_filters( 'astra_meta_case_' . $meta_value, $output_str, $loop_count, $separator );
    
    			}
    
    			$loop_count ++;
    		}
    
    		return $output_str;
    	}
    }

    Maybe so, but I’m not sure.
    functions.php

    if ( ! function_exists( 'astra_post_author' ) ) {
    
    	/**
    	 * Function to get Author of Post
    	 *
    	 * @param  string $output_filter Filter string.
    	 * @return html                Markup.
    	 */
    	function astra_post_author( $output_filter = '' ) {
       
    		ob_start();
            echo '<span class="my_class">';
            echo get_avatar( $user_ID, 30 );
            echo '</span>';
    		echo '<span ';
    			echo astra_attr(
    				'post-meta-author',
    				array(
    					'class' => 'posted-by vcard author',
    				)
    			);
    		echo '>';
    			// Translators: Author Name. ?>
    			<a title="<?php printf( esc_attr__( 'View all posts by %1$s', 'astra' ), get_the_author() ); ?>" 
    				href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" rel="author"
    				<?php
    					echo astra_attr(
    						'author-url',
    						array(
    							'class' => 'url fn n',
    						)
    					);
    				?>
    				>
    				<span
    				<?php
    					echo astra_attr(
    						'author-name',
    						array(
    							'class' => 'author-name',
    						)
    					);
    				?>
    				><?php echo get_the_author(); ?></span>
    			</a>
    		</span>
    
    		<?php
    
    		$output = ob_get_clean();
    
    		return apply_filters( 'astra_post_author', $output, $output_filter );
    	}
    }

    CSS
    .my_class img {border-radius: 50%; margin-left: 3px;}
    Astra theme developers will tell you better.
    or

    if ( ! function_exists( 'astra_post_author' ) ) {
    
    	/**
    	 * Function to get Author of Post
    	 *
    	 * @param  string $output_filter Filter string.
    	 * @return html                Markup.
    	 */
    	function astra_post_author( $output_filter = '' ) {
       
    		ob_start();
            
    		echo '<span ';
    			echo astra_attr(
    				'post-meta-author',
    				array(
    					'class' => 'posted-by vcard author',
    				)
    			);
    		echo '>';
    			// Translators: Author Name. ?>
    			<a title="<?php printf( esc_attr__( 'View all posts by %1$s', 'astra' ), get_the_author() ); ?>" 
    				href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" rel="author"
    				<?php
    					echo astra_attr(
    						'author-url',
    						array(
    							'class' => 'url fn n',
    						)
    					);
    				?>
    				>
    				<span
    				<?php
    					echo astra_attr(
    						'author-name',
    						array(
    							'class' => 'author-name',
    						)
    					);
    				?>
    				><?php echo get_the_author(); ?></span>
    			</a>
    
    		</span>
            <?php echo '<span class="my_class">';
            echo get_avatar( $user_ID, 30 );
            echo '</span>'; ?>
    		<?php
    
    		$output = ob_get_clean();
    
    		return apply_filters( 'astra_post_author', $output, $output_filter );
    	}
    }

    Need to override padding .ast-footer-overlay

    After all, not only will you see your site. He should look good everywhere. Just use the “Rating” widget correctly.https://i.postimg.cc/fWP96p51/2019-12-28-10h49-04.png

    • This reply was modified 4 years, 11 months ago by zabavljaev.

    I definitely don’t know if this can be done in the Elementor settings. In any case, you can adjust the line-height value. For instance:

    .elementor-star-rating {
        line-height: 1.82;
    }

    For some reason you have in the “Technical Skills” section 10 headings and 11 rating stars.
    What I suggested explains only the discrepancy between the titles and the stars. But on mobile devices, the block with the stars will be under the block with the titles. You probably used the rating block incorrectly. Unfortunately, I do not know how to do this with Elementor. Try reading the documentation or contacting Elementor technical support.
    You need to fill in the title field. And create the required number of rating blocks.
    Video

    • This reply was modified 4 years, 11 months ago by zabavljaev.

    Appearance → Customize → Header → Primary Menu → Disable Menu. But this will disable the menu on the entire site.
    Homepage only:

    .home #site-navigation {
        display: none;
    }

    If I understand you correctly.

    Hello! You can install the plugin “Gutenberg Blocks – Ultimate Addons for Gutenberg” and use it to make any design. Here is what I got https://s91573pd.bget.ru/?page_id=955 I used the “section” block with a background image and inside it I placed the “Advanced Columns” block with a colored background and images. You just need to learn WordPress, the Gutenberg editor and the Gutenberg Blocks plugin – Ultimate Addons for Gutenberg.
    This is done in the free Astra theme. Astra Pro will provide you with additional features.

    • This reply was modified 4 years, 11 months ago by zabavljaev.

    keywords are not counted by search engines. Description and title are important. This can be done using functions.php, but you can use plugins for SEO.

    I use Font Awesome and Astra.woff. Astra.woff has a size of only 3 KB – and does not have a significant impact on page loading speed. But in my case, it would be nice to disable Astra.woff, replacing it with Font Awesome.

    .ast-button-wrap .menu-toggle .menu-toggle-icon::before {
    	font-family: "FontAwesome";
        content:"\f0c9";
    	}
    .ast-button-wrap .menu-toggle.toggled .menu-toggle-icon::before {
        font-family: "FontAwesome";
        content:"\f00d";
    }

    Of course, page loading speed depends not only on file size. But you can use caching or, in the end, completely abandon fonts and replace them with images. I am wondering if rel = preload will affect speed.

    Thread Starter zabavljaev

    (@zabavljaev)

    Better add float: left; and leave li:before

    .sidebar-main .widget_categories ul li:before,
    .sidebar-main .widget_recent_entries ul li:before{font-family:'FontAwesome';content:"\f02e";float: left;margin-right:15px;color:#000;}

    I apologize! A wonderful theme Astra is not to blame.

Viewing 15 replies - 76 through 90 (of 143 total)