Okay
  Public Ticket #825601
All in one SEO Pack
Closed

Comments

  • José Enrique started the conversation

    Where can i manage theme's open graph objects?

    I'm using All-in-one-SEO-Pack plugin and some objects are duplicated in some pages; by theme header and the plugin.

  • [deleted] replied

    Hi José,

    You are using an old version of our theme (1.9.1) and the latest version for the moment is (1.9.3), please update your theme first and then the premium plugins too.

    The easiest way to update our themes is if you use Envato Toolkit or Envato Market plugin. On this link How to update Themes and Plugins you can learn this easy step-by-step procedure :)

    Important: After you update the theme please don't forget to go to Appearance > Install Plugins to update all your premium plugins to the latest version that we support.

    If you can't update LayerSlider, go to Plugins and deactivate this plugin. Then go to Appearance > Install Plugins, you now can update and then activate Layer Slider again.


    When you update the theme if you still have any problem, please just respond to us here :)

  • José Enrique replied

    Still the same problem. Look at code between header in front-page

    <!-- All in One SEO Pack 2.3.7 by Michael Torbert of Semper Fi Web Design[770,814] -->
    <link rel="canonical" href="http://jorgecampos.ch/pt/escultura/" />
    <meta property="og:title" content="Jorge Campos" />
    <meta property="og:type" content="website" />
    <meta property="og:url" content="http://jorgecampos.ch/pt/escultura/" />
    <meta property="og:image" content="http://jorgecampos.ch/wp-content/plugins/all-in-one-seo-pack/images/default-user-image.png" />
    <meta property="og:site_name" content="Jorge Campos" />
    <meta property="og:description" content="Art & Artist" />
    <meta name="twitter:card" content="summary" />
    <meta name="twitter:title" content="Jorge Campos" />
    <meta name="twitter:description" content="Art & Artist" />
    <meta name="twitter:image" content="http://jorgecampos.ch/wp-content/plugins/all-in-one-seo-pack/images/default-user-image.png" />
    <meta itemprop="image" content="http://jorgecampos.ch/wp-content/plugins/all-in-one-seo-pack/images/default-user-image.png" />
    <!-- /all in one seo pack -->
    <link rel="alternate" type="application/rss+xml" title="Jorge Campos » Feed" href="http://jorgecampos.ch/pt/feed/" />
    <link rel="alternate" type="application/rss+xml" title="Jorge Campos » Feed de comentários" href="http://jorgecampos.ch/pt/comments/feed/" />
    
    	<meta property="og:type" content="article"/>
    	<meta property="og:title" content="escultura"/>
    	<meta property="og:url" content="http://jorgecampos.ch/pt/escultura/"/>
    	<meta property="og:site_name" content="Jorge Campos"/>
    	<meta property="og:description" content=""/>

    code between <!-- is automatically generated by the plugin. Rest of code is generated by theme.

    objects are duplicated and content is different...

  • [deleted] replied

    Hi José,

    I just wanted to inform you you that this question is related to theme developer and I am unable to give you any solution about this because I am not backend developer. 

    Our theme developer Arlind can help you with this, but he is not in the office until 18 July. So when Arlind come back, just reply to this thread on that date and you will make sure he will see your comment.

    Hope for your understanding :)

  • José Enrique replied

    OK... i have found this function in /inc/laborator_actions.php

    // Open Graph Meta
    function kalium_wp_head_open_graph_meta() {
        global $post;
        
        // Only show if open graph meta is allowed
        if ( ! apply_filters( 'kalium_open_graph_meta', true ) ) {
            return;
        }
        
        // Do not show open graph meta on single posts
        if ( ! is_singular() ) {
            return;
        }

        $image = '';
        
        if ( has_post_thumbnail( $post->ID ) ) {
            $featured_image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'original' );
            $image = esc_attr( $featured_image[0] );
        }

        ?>

        <meta property="og:type" content="article"/>
        <meta property="og:title" content="<?php echo esc_attr( get_the_title() ); ?>"/>
        <meta property="og:url" content="<?php echo esc_url( get_permalink() ); ?>"/>
        <meta property="og:site_name" content="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>"/>
        <meta property="og:description" content="<?php echo esc_attr( get_the_excerpt() ); ?>"/>

        <?php if ( '' != $image ) : ?>
        <meta property="og:image" content="<?php echo $image; ?>"/>
        <?php endif;
    }

    add_action( 'wp_head', 'kalium_wp_head_open_graph_meta', 5 );

    just delete and it works properly... think that 'kalium_open_graph_meta' should be 'false' when All in one SEO Pack's Social Meta is installed and activated. Can't find where to control this,
  • [deleted] replied

    Glad to hear that you solved the problem :)

  • José Enrique replied

    think it does not solve the problem... but it's a good way for me to wait your developer back from holidays ;-)

    Greatings from Spain!

  •  2
    Vitaliy replied

    hi José Enrique

    I had a similar problem.

    look at https://laborator.ticksy.com/ticket/868019

    I install Yoast SEO and add in functions.php :

    add_filter( 'kalium_open_graph_meta', '__return_false', 100 );


  • [deleted] replied

    Hi Jose,

    Yes, Vitaliy is correct, that will work for you.