Jump to content

How to move html text in php to another page


samson132

Recommended Posts

How can I move my intro text shown in step 2 to the same place in step 1?

 

To see the intro text visit - http://www.workbooks.com/sales-performance-calculator and click "Get started now".

 

Then click > Next step

 

You'll see the text: 



>Over the next few steps we’ll ask you to rate your current sales and marketing performance and then estimate your future rating with a new CRM platform that meets your business needs and requirements.


 

This is the text which I'd like to remove and add in the same place above the first step (Step 1 (of 7) - Current Business Figures.

 

This line is found on line 9 in values.php see JSFiddle - http://jsfiddle.net/arf1z13w/

 



    $wb_spc_array['sections'][] = array("key" => "new-business-generating", "name" => "New Business Generating", "type" => "sales", "intro" => "<p>Over the next few steps we’ll ask you to rate your current sales and marketing performance and then estimate your future rating with a new CRM platform that meets your business needs and requirements.</p>", "description" => "Rate your organisation on its ability to effectively market to new prospects, generate leads and then measure the ROI of marketing campaigns. We’ve outlined some positive and negative indicators below to provide you with a benchmark.", "body" => "


 

The remainder of the page seems to be styled in wb_spc.module, see a JSFiddle of this - http://jsfiddle.net/bmzox5vL.

 

How can I make this work?

Link to comment
Share on other sites

Your could try commenting out lines 174 through to 176 (add // at the start of the lines eg)

      // if(isset($section['intro'])){
      //   $form[] = array('#markup' => $section['intro']);
      // }

Now before line 147 add the following

$form[] = array('#markup' => $wb_spc_array['sections'][0]['intro']);
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.