This series of themes was originally designed without a single team profile post view, as the post type was intended to feed the widget and team page only. Partners are designed to link off-site or to a custom link, thus also do not have a single post view. For this reason, images in the content widget for these post types are not linked. When the single team view was added in later versions, we could not compromise existing site setups for users who did not have these posts setup, therefore the image link was not added to the widget.

This article describes how you can modify the widget or create a custom copy of the widget in order to link the team post type to it’s post URL automatically. For partners, we have supplied the Partners widget to handle this functionality if you need it.

This is considered a modification, and is provided as-is. We expect you understand what you are doing if applying coding changes using these or other WordPress tutorials. Make a backup of your existing file so you can replace it if something goes wrong and you need to start over. Modified files WILL probably be replaced by a theme update at some point, so keep note of your changes for future reference or see our guides below. We cannot assist you with modifying your theme or support problems you encounter as a result!

If you are modifying a theme as part of a client project, the following are really important!

How to Modify Your Theme the Right Way
How to Track Update Changes and Maintain Modifications

The Solution

  1. View the widget modification section of the following article for how to create a copy of the widget. This is important if you are building a client site, or need to be able to apply theme updates separately from reapplying modifications. In either case, keep an eye on the update notes so you are aware of any changes to the content widget that require you to redo your modification/copy.
  2. In an HTML editor on your computer, or using the Solid Code Theme Editor plugin in WordPress, open ocmx/widgets/content-widget.php
  3. Locate the following code on or around line 100:
    if($posttype == 'partners' || $posttype == 'team') :
    $imagelink = true;
    else :
    $imagelink = false;
  4. Remove || $posttype == 'team'. You should now have the following:
    if($posttype == 'partners') :
    $imagelink = true;
    else :
    $imagelink = false;
  5. Save your changes. If you created a copy of the widget or modified the file locally, upload your changes to your server under wp-content/themes/yourtheme/ocmx/widgets/


Have you seen Elementor?

You can build almost any Obox theme with Elementor!
With a powerful, fast page builder, Elementor is the best way to get your site online with as little effort as possible.