Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter ducod

    (@ducod)

    
    .bp-star-ratings.top-left,
    .bp-star-ratings.top-right {
        position: absolute;
    	left: 40%;
    	top: -3%;
    }
    
    @media only screen and (max-width: 600px) {
    
    .bp-star-ratings.top-left,
    .bp-star-ratings.top-right {
        position: absolute;
    	left: 20%;
    	margin-top:10px;
    	
    }
    }
    
    @media only screen and (min-width: 600px) {
        
    .bp-star-ratings.top-left,
    .bp-star-ratings.top-right {
        position: absolute;
    	left: 28%;
    	margin-top:10px;
    }
    }
    
    @media only screen and (min-width: 768px) {
        
    .bp-star-ratings.top-left,
    .bp-star-ratings.top-right {
        position: absolute;
    	left: 35%;
    	margin:10px 0px 25px 0px;
    }
    }
    
    @media only screen and (min-width: 992px) {
        
    .bp-star-ratings.top-left,
    .bp-star-ratings.top-right {
        position: absolute;
    	left: 40%;
    	top: -3%;
    }
    }
    
    @media only screen and (min-width: 1200px) {
    .bp-star-ratings.top-left,
    .bp-star-ratings.top-right {
        position: absolute;
    	left: 40%;
    	top: -3%;
    }
    }
    

    I am currently using these codes, but it’s better to have the options selected at the backend, thank you.

    • This reply was modified 3 years ago by ducod.
    Thread Starter ducod

    (@ducod)

    Set this topic as Resolved, as I have found the issue: I tried to manually upload an advanced-cache.php to wp-contents, thought this will get my site working even faster, but this blocks Google to fetch my website, I tried to delete this PHP file and everything looks fine now.

    Thread Starter ducod

    (@ducod)

    Thank for your reply, but unfortunately, the plugin couldn’t be installed as the WordPress notes that this plugin doesn’t support current PHP version, even I tried to upload the folder to the wp-content/plugin, and try to activate it, the result stayed the same.

    Thread Starter ducod

    (@ducod)

    Yes, I noted the new changes, thanks very much for your help and indeed, I’ve customized with my own style, it looks great to fit my theme right now. Also, have submitted my 5/5 review in the plugin review’s page. Thanks again for your help!

    Thread Starter ducod

    (@ducod)

    The Schema code is working! Thanks so much for your help! As for the custom text with link issue I’ve contacted with the email support, so, it’s time to close this thread, thanks very much for your help!

    Thread Starter ducod

    (@ducod)

    BTW, sorry for my lack of code skills,

    I tried to use the schema feature with the Custom section(check this screenshot) and after testing in Google Construction tool, the result shows that I need to add the required operatingsystem and applicationcategory value, though I checked the schema.org document in the document page. and then add the code as follow:

    add_filter( 'site-reviews/schema/Custom', function( array $schema ) {
    	$schema['SoftwareApplication'] = [
    		'@type' => 'Entrypoint',
    		'applicationCategory' => 'Backup,Restore',
    		'operatingSystem' => 'Windows,Mac',	
    	];
    	return $schema;
    });

    But it seems it doesn’t work. What should I do then?

    Thread Starter ducod

    (@ducod)

    Yes, I did paste the code in the plain text area, check the screenshot,

    But the result I got is only:No URL, check this screenshot

    For the category and assigned_to feature, that means I need to create a review page separately for product 1 and product 2.

    Thread Starter ducod

    (@ducod)

    Hi, I finally used the solution as below:

    1. Assign_to the review page and then added the code from Pastebin link.
    2. Add drop_menu in the same review page where has two categories.

    Added the shortcode to the product page 1:
    [site_reviews_summary category=1417 assigned_to="2600" schema=true hide=rating,bars]

    Added the shortcode to the product page 2:
    [site_reviews_summary category=1418 assigned_to="2600" schema=true hide=rating,bars]

    Both of these two pages can have the stars and review numbers showing as like the screenshot.

    However, the text="<a href='/reviews'>Reviews ({num})</a>"code isn’t working on my theme, don’t know why.

    BTW,
    1. How can I add the search bar in the Review page if someone wants to search for the target keywords to filter the current results? Check this screenshot
    2. How to add the category name beside each review —Check this screenshot

    Thread Starter ducod

    (@ducod)

    [site_reviews_summary text="<a href='/reviews'>Reviews({num})</a>" schema="true" class="text-align:center" hide="rating,bars"]

    Yes, I used the single quotes to the URL, however, I got the result finally like this:

    Screenshot

    What’s wrong?

    Thread Starter ducod

    (@ducod)

    I’ve added the code to function.php and then the shortcode to the page.

    //Reviews add Link
    add_filter( 'site-reviews/rendered/template/reviews-summary', function( $template, $data ) {
        if( !empty( $data['context']['assigned_to'] )) {
            $permalink = get_the_permalink( $data['context']['assigned_to'] );
            $title = get_the_title( $data['context']['assigned_to'] );
            if( $permalink && $title ) {
                $assignedToPermalink = sprintf( ' of <a href="%s">%s</a>', $permalink, $title );
                $template = preg_replace( '/(\(based on \d+ reviews?)(\))/', '$1'.$assignedToPermalink.'$2', $template );
            }
        }
        return $template;
    }, 10, 2 );

    However, the link isn’t working,

    showing like this:

    Stars
    <a href='/reviews'>Reviews (2)</a>

    What should I do now? Thanks.

    • This reply was modified 5 years, 7 months ago by ducod.
    Thread Starter ducod

    (@ducod)

    OK, I will try it. Thanks again for your help!

    Thread Starter ducod

    (@ducod)

    Thanks so much for your quick response!

    Should I assign to the reviews page in the homepage’s shortcode? the reviews page id is 2600. Or will the {num} from the homepage auto add numbers once getting new reviews.

    Thread Starter ducod

    (@ducod)

    Thanks, @blazk

    I’ve embedded
    <?php echo do_shortcode('[ratemypost-result]'); ?>

    and

    <?php echo do_shortcode('[ratemypost]'); ?><br/>

    to my theme’s single page, it’s working now.

    You can check this post now.

    https://r-datarecovery.com/check-disk-for-consistency.html

    Many Thanks for your help!

    • This reply was modified 5 years, 11 months ago by ducod.
    • This reply was modified 5 years, 11 months ago by ducod.
    Thread Starter ducod

    (@ducod)

    Thanks, @blazk,

    The link is:

    https://r-datarecovery.com/wp-admin/post.php?post=1141&action=edit

    I’ve inserted code to my function.php before so that I can check the POST ID directly in my backend, that’s why I attached the screenshot to show you the POST ID there in the picture.

    Also, you can find the POST ID with this screenshot.

    https://bit.ly/2TaydwI

    Thanks for your help and what should we do next?

    Thread Starter ducod

    (@ducod)

    If I added the post ID, the exclude feature is all right, but I only need to remove the extra RMP result from the bottom of the post. and that footer is a PAGE, the ID is 1141, the exclude feature does not work on removing this one.

Viewing 15 replies - 1 through 15 (of 18 total)