Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-13634

Frontend CRM pages in WP cannot modify html-header

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.0
    • Fix Version/s: 4.5
    • Component/s: WordPress Integration
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      Initial report here: http://forum.civicrm.org/index.php/topic,30293
      Whenever a CRM page is called from a non-admin url (including shortcodes and direct links to e.g. contribution pages) the code to generate that page is only called after the html-header has already been printed.
      So it will not be able to add scripts, styles, etc. to the header.
      Reading the code, this seems to be a known issue. Shortcodes are only evaluated during rendering of the page body. We would need to pre-process them and somehow buffer the output.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                timotten Tim Otten
                Reporter:
                colemanw Coleman Watts
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: