How to change how my page embeds onto others via link

[ad_1]

https://preview.redd.it/zpnrv46z976d1.png?width=356&format=png&auto=webp&s=327e6393780a02b8aee59f06c1df909549d69fd7

I would like to change how this embed (this one is on Discord) looks like. My site is build on WordPress and I wonder if there is any change so I can modify what elements are being displayed when my site is embeded somewhere. I would like the main image to be there and to delete my username from there, as it’s not needed.

[ad_2]
1 Comment
  1. To change how your WordPress page embeds onto others via link, you can use the og:image and og:description Open Graph meta tags. These tags allow you to specify the image and description that will be displayed when your page is shared on social media platforms or embedded on other websites.
    Here’s an example of how you can add these tags to your WordPress site:
    Method 1: Using a plugin

    1. Install and activate the Yoast SEO plugin.
    2. Go to the Yoast SEO settings page and navigate to the “Social” tab.
    3. Under “Facebook”, click on “Add Open Graph metadata”.
    4. Enter the URL of the image you want to display when your page is embedded.
    5. Enter the description you want to display when your page is embedded.
    6. Save the changes.

    Method 2: Using a code snippet

    1. Add the following code snippet to your WordPress theme’s functions.php file:

    ​

    php

    function my_custom_og_tags() {
    if ( is_singular() ) {

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer