Appnitro Software Forums » MachForm

Can you add Hyperlink(s) to a form's Logo?

(6 posts)

  1. Hi,

    I need to add some hyperlinks to a logo on a form. I see the CSS File where to change the logo. Is there a way to add a hyperlink?

    If this cannot be done in the CSS file, what is a good workaround? I could add a section break at the beginning of the form and write the HTML code there for the logo, but I would like the form's title to come after the logo.

    Thank you in advance for your help!

    Posted 1 year ago #
  2. Hi,

    To change your form logo as hyperlink, you need to edit "includes/view-functions.php" file, go to line 1838, you will see this code :

    <h1><a>{$form->name}</a></h1>

    For example your hyperlink url is "http://www.mydomain.com" then change to

    <h1><a  href="http://www.mydomain.com">{$form->name}</a></h1>

    otherwise you can add hyperlink tag in "form title" text box when you edit the form. I think it's more easier :)

    Posted 1 year ago #
  3. Thanks. I am putting more than 1 hyperlink on to one logo so it is too long to put in the "form title". I actually did not want to make this a global change, but specific to each form. How would I do that?

    Posted 1 year ago #
  4. It's need to use a different approach then, you can ignore my previous code. To do so edit "view-functions.php" and go around line 1814 ~ 1816, you will see these code :

    if($embed){
    	$embed_class = 'class="embed"';
    }

    put these code exactly bellow that line

    if ($form_id == 1) {
    	$form_link = '<a  href="http://www.domain1.com">'.$form->name.'</a>';
    }
    elseif ($form_id == 2) {
    	$form_link = '<a  href="http://www.domain2.com">'.$form->name.'</a>';
    }
    else {
    	$form_link = '<a>'.$form->name.'</a>';
    }

    Then go to line 1846, you'll see this code :

    <h1><a>{$form->name}</a></h1>

    replace with

    <h1>{$form_link}</h1>

    Don't forget to change the form id with yours

    Posted 1 year ago #
  5. Redityo - thank you! We are soooo close here. I am trying to do several hyperlinks on one logo. I was using the following code in a section break to add the different hyperlinks:

    <img src=http://www.example.com/LOGO/my_Logo.gif usemap="#logo" border="0">
    <map name="logo">

    </map>

    Can something like this be added?? If not, can you hide the Form Title in the form? A quick response would be great as I am trying to get this out today! :)

    Thanks so much!

    Posted 1 year ago #
  6. I just realized I posted this publically in a forum, are you able to delete the previous post and reply privately?

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.