Support » Plugin: WP Quadratum » Still cant change the strapline

  • Hi Gary,

    I am still not able to figure out how to change the strapline content that appears under the map illustration of my checkin on my wordpress page.

    I have already activated both a Google Maps API Key and a Factual API Key. I have also carefully read the WP Quadratum plugin’s settings and edit links (on the WP Installed Plugins page), and have visited and read the plugin’s own site. But I still can’t figure out where or how to make the necessary changes to the 3 filters mentioned in order to alter how the strapline is rendered. So I feel I have been thorough in my investigation, but admittedly am non-technical and so need step-by-step directions to actually accomplish what I am trying to do.

    I’d be grateful if you could let me know what to click on first, then second, what to enter in this field or that field, etc.

    Thanks so much!


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author vicchi


    Hi there,

    If you want to modify the plugin’s widget strapline you don’t need a Factual API account; this is only needed if you’re going to be using the [wpq_locality] or [wp_quadratum_locality] short-codes.

    To modify the strap-line, you’ll need to code a filter hook function in PHP that will be invoked when the plugin calls the wp_quadratum_strapline filter as part of one of your pages loading.

    That means you’ll need to have a reasonable knowledge of how the WordPress filter and hook mechanism works and how to code a function in PHP that does what you need to do.

    The quickest way to do this is to install another plugin that allows you to run custom PHP scripts; WP Customizer can do this for you (as well as loading custom JavaScript and CSS as well; custom JavaScript won’t be needed for this but custom CSS might if you’re not happy with how the strap-line is styled). For transparency’s sake, this plugin is also one of mine, which I wrote as a convenient way to answer this sort of question. You’ll find more detail on the thinking behind this plugin and how to use it here.

    After installing and activating the plugin, you’ll need to enable custom front-end functions, then create a PHP source file called strapline.php in a subdirectory called functions which will be located in the directory that contains your WordPress root.

    In strapline.php, you can then copy and paste the sample filter hook that’s in the plugin’s documentation. It looks like this …

    add_filter('wp_quadratum_strapline', 'format_strapline', 10, 2);
    function format_strapline($content, $params) {
        // $params = array (
        //      'venue-url' => '4Sq venue url for checkin',
        //      'venue-name' => 'checkin venue name',
        //      'checked-in-at' => 'timestamp of checkin'
        //  );
        $strapline = '<h5>Last seen at <a href="' . $params['venue-url'] . '" target="_blank">' . $params['venue-name'] . '</a> on ' . date('l jS \of F Y h:i:s A', $params['checked-in-at']) . '</h5>';
        return $strapline;

    This will give you a working implementation of the strap line filter. You’ll then need to amend the value of the $strapline variable to give you the format and display you need.

    Hope this helps


    Hi Gary,

    Thanks for this very helpful and detailed explanation. I’ll do some research and post back here if I get stuck. I’m new to WP, but some great support forum community members have kept my learning curve steep so far.



    Hi Again Gary,

    I was about to follow your directions above when I received this email from Foursquare. Here’s an excerpt:

    “Starting on June 1, 2014, API requests using versions 20120609 and lower will no longer be supported, and these requests will be rejected.”

    Their email is related my site’s use of your WP Quadratum plugin. Will you be updating it? Let me know if you’d like me to paste the whole content of their email here.



Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Still cant change the strapline’ is closed to new replies.