Viewing 11 replies - 1 through 11 (of 11 total)
  • Leo

    (@leohsiang)

    Thread Starter sfuma

    (@sfuma)

    I don’t want to load the theme with plugins. I wish it worked out of the box. Or give the code in function.php

    Theme Author Tom

    (@edge22)

    Open Graph tags are plugin territory – it’s not something you want to be added to the theme, really.

    You can, of course, add them yourself using your functions.php file:

    add_action( 'wp_head', function() {
        ?>
            Your Open Graph tags in here.
        <?php
    } );

    The trouble there is having to add all of the conditions for individual pages, etc..

    You could use the Elements module in our pro version so you don’t have to mess with conditions or PHP. This would be more simple than the approach above using your functions.php file.

    Otherwise, an Open Graph plugin is the way to go, as it will give you the UI to fill things out, and you won’t need to deal with PHP at all.

    Thread Starter sfuma

    (@sfuma)

    Your theme is very poorly optimized for SEO. Additional SEO plugins are very heavy and there is no desire to install them.

    Theme Author Tom

    (@edge22)

    Hi there,

    The theme itself isn’t allowed to have SEO features like Open Graph, it goes against the www.ads-software.com theme repository guidelines, which we obviously need to follow.

    You can find the plugin territory functionality guidelines here: https://make.www.ads-software.com/themes/handbook/review/required/#examples-3

    That being said, it’s not necessary to install a complete SEO plugin (they can be heavy), there are quite a few very simple OG plugins out there that aren’t nearly as heavy:
    https://www.ads-software.com/plugins/wonderm00ns-simple-facebook-open-graph-tags/
    https://www.ads-software.com/plugins/wp-open-graph/

    These plugins offer the exact kind of functionality the theme would offer if it were allowed to do and we felt like it was necessary to add.

    Hope this helps!

    Thread Starter sfuma

    (@sfuma)

    Also, you have poorly implemented schema.org microdata.

    Theme Author Tom

    (@edge22)

    Would love some more feedback on that if you have it – we’re always looking to improve.

    We are handcuffed a bit by the same guidelines that I mentioned above, as a lot of microdata requires some options to be saved in the back-end, which is against WP.org guidelines if it’s not presentational (anything SEO-related).

    That’s why our microdata is as advanced as possible without needing to collect extra data from the user, and without assuming the kind of site GeneratePress will be used on.

    Thanks!

    Thread Starter sfuma

    (@sfuma)

    I want your theme to be as fast as possible and have minimal SEO settings on board. Since SEO plugins are monstrously large and consume a lot of resources. And the latest YOAST plugin updates are a complete failure.

    Theme Author Tom

    (@edge22)

    Themes used to have SEO settings as a standard a long time ago. However, data like SEO settings are something you really want to be separate from a theme. Imagine you’ve used theme settings to set SEO data for 100 posts on your website, and one day you need to switch themes. All of that data would be locked into the theme, and you’d lose it all if you had to switch.

    I believe that’s why www.ads-software.com decided to make it a rule that themes hosted here don’t have SEO options (or any kind of non-presentational data).

    Yoast is a big plugin, however, I’m not sure how much of an impact it has on frontend performance. It’s worth a couple of tests. There are tons of other SEO plugins as well that are much smaller.

    Thread Starter sfuma

    (@sfuma)

    How to include it in the theme’s functions.php file.

    seo.php

    require_once 'seo.php'; Does not work.

    Theme Author Tom

    (@edge22)

    You would need to use a child theme: https://docs.generatepress.com/article/using-child-theme/

    Then you’d add that file to the child theme, and require it from your child theme functions.php file.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Open Graph’ is closed to new replies.