Forum Replies Created

Viewing 12 replies - 46 through 57 (of 57 total)
  • Hi @matthewlanghals1974

    I got your issue. Its happening due to the css display none, you have add on content class. So you just need to remove that display none style. I am attaching below the css, due to this css issue is happening.

    .fl-visible-medium, .fl-visible-medium-mobile, .fl-visible-mobile, .fl-col-group .fl-visible-medium.fl-col, .fl-col-group .fl-visible-medium-mobile.fl-col, .fl-col-group .fl-visible-mobile.fl-col {
        display: none;
    }

    Hi @eszukiewicz13

    Page meta title is a SEO thing. So you need to do it by your installed SEO plugin. I checked your source code and I found Rank Math SEO plugin. So you need to change title from that plugin settings of individual page.

    Thank you.

    Forum: Fixing WordPress
    In reply to: Hide menu

    Hi @norraviken

    I have checked your page and found solution.

    You just need to add few lines of css. I am attaching the code below.

    .page-id-801 .mainmenu-wrapper {
        display: none;
    }

    So this will hide the menu in desktop site and responsive view. Now you need to align symbol in center in mobile view. For that you need to add 2 lines of css in id swl-main-logo. Attaching code below.

    #swl-main-logo {
        margin-left: auto;
        margin-right: auto;
        z-index: 2;
    }

    Hi @jclipperton

    You have given the css for color.

    h1, h2, h3, h4, h5, h6, p {
        color: #3a3a3a;
    }

    So to add white color, you need to replace the above css styles. You need to add
    color: white; instead of color: #3a3a3a;

    Thank you.

    Hi @smittyatl

    Do you have any custom post type for blog?
    If you don’t have then create one. Its very simple and you can easily get this on google. Its important to create a custom post type because it will create a seprate space for all your blogs post on admin bar and client/user can easily use it. If you have then you just need to fetch that custom post type of blog by wpquery and then run the loop to display all blogs posts. I am attaching code of it.

    $args       = array(
                'posts_per_page' => $attributes['numberOfPosts'],
                'post_type'      => 'blogs',
            );
        
            $blockquery = new WP_query( $args );
          
    
    ob_start(); ?>
    	<div class="container">
    	    <?php
            if ( $blockquery->have_posts() ) {
    
                while ( $blockquery->have_posts() ) {
                    
                    $blockquery->the_post();
    
                    $post_title = get_the_title();
                    ?>
                    <div class="wrapper">
                        <a>">
                            <h3 class="title"><?php echo esc_html( $post_title ); ?></h3>
                        </a>
                    </div>
                    <?php 
                }
            } else {
                ?>
                <p class="result-not-found">0 Result</p>
                <?php 
            }
            ?>
    	</div>
    	<?php
    	wp_reset_postdata();
    
    	$html = ob_get_clean();
    	return $html;


    So this code is for fetching all your blog custom post type titles you can also fetch the excerpts by get_the_excerpt just like I did for title.

    I am also attaching code below for creating a custom post type.

    
    // Blogs post type.
    	$labels = array(
            'name'               => _x( 'Blogs', 'post type general name', 'theme name' ),
            'singular_name'      => _x( 'Blog', 'post type singular name', 'theme name' ),
    	'menu_name'          => __( 'Blogs', 'theme name' ),
            'all_items'          => __( 'All Blogs', 'theme name' ),
            'view_item'          => __( 'View Blog', 'theme name' ),
            'add_new_item'       => __( 'Add New Blog', 'theme name' ),
            'add_new'            => __( 'Add New', 'theme name' ),
            'edit_item'          => __( 'Edit Blog', 'theme name' ),
            'update_item'        => __( 'Update Blog', 'theme name' ),
            'search_items'       => __( 'Search Blog', 'theme name' ),
        );
    
        $args = array(
            'labels'             	=> $labels,
    		'taxonomies'          => array( 'category'),
            'public'             	=> true,
            'publicly_queryable' 	=> true,
            'query_var'          	=> true,
            'capability_type'    	=> 'post',
            'has_archive'        	=> false,
            'hierarchical'       	=> false,
            'show_in_rest'		=> true,
    	'exclude_from_search'	=> false,
            'menu_position'      	=> null,
    	'menu_icon'		=> 'dashicons-groups',
            'supports'           	=> array(
    			'title',
    			'author',
    			'thumbnail',
    			'editor',
    			'excerpt',
    			'custom-fields',
    		),
        );
    
        register_post_type( 'blogs', $args );

    In this code you have to put your theme name in the place of theme name.

    I hope this will help you.
    Thank you.

    • This reply was modified 3 years, 2 months ago by Smit Rathod.
    • This reply was modified 3 years, 2 months ago by Smit Rathod.
    • This reply was modified 3 years, 2 months ago by Smit Rathod.
    • This reply was modified 3 years, 2 months ago by Smit Rathod.

    Hi @jljefferson

    You can check your PHP version from the TOOLS->SITE HEALTH. I am attaching 1 image of my site TOOLS dashboard.

    Image link: https://prnt.sc/24a5784

    Now your file needs PHP version >= 7.2.5 so you need to update your php version from your hosting platform. Which hosting platform you have hosted your site?

    I hope this will help you.

    Thank you.

    Hi @jillyspence

    You can use columns block and add image in column. I am attaching the image link of solution.

    Image link: https://prnt.sc/2462xjf

    Now you can easily get the solution of your problem.

    Hi @chrisbadgett

    Can you tell me which file you are uploading in file block?
    Because the file block displays the full PDF, when the file is of PDF format. And when the file is of some other format like png, jpg, xlsx etc. Then it will only displays the clickable title of file and download button. I hope this comment will help you.

    Thank you.

    Attaching picture of it. In this picture I have showed the class in which you need to remove overflow: hidden and overflow-y: auto and then as per above comment you just need to add height styles.

    Image link: https://prnt.sc/241flo8

    Hi @jeanapple2010

    I found the solution for your problem. You need to just remove the overflow: hidden and overflow-y: auto from the .site-header-menu-responsive-wrapper class. After this you need to give the height to .site-header-menu-responsive-wrapper.show.

    Add the height style like this:

    .site-header-menu-responsive-wrapper.show {
        left: 0;
        visibility: visible;
        height: auto;
    }

    Thank you and reply me for any other help.

    Hi @littleeasy its created by using js. So the main concept is: it is adding class “show” to the class “purchase-options__dropdown” when there is a click on the div having class “purchase-options”.

    Attaching the video link for detailed explaination for creating the dropdown.
    link: https://www.loom.com/share/d5dba0c265fd4fb28b9419817e1e3d25

    Now i am showing you the basic example to use add class function in js.

    <script>
    function myFunction() {
       var element = document.getElementById("myDIV");
       element.classList.add("mystyle");
    }
    </script>

    call this function on click.

    Thank you.

    Hi @pietramarek

    You want to add your scripts in head of your page? So i have a solution for this.

    just add this lines of code in your theme functions.php

    Code:

    function my_js() {
        echo '<script type="text/javascript" src="customscript.js"></script>';
    }
    // Add hook for admin <head></head>
    add_action( 'admin_head', 'my_js' );
    // Add hook for front-end <head></head>
    add_action( 'wp_head', 'my_js' );

    I hope this would help.

    Thank you.

Viewing 12 replies - 46 through 57 (of 57 total)