We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

How to change the link that your header logo refers to? | Forum

20 Hours a Day
20 Hours a Day May 25 '14
So, all I want to do is change where my header logo links to when I click on it.

First I verified the correct location of my logo.
 <div class="ow_logo_wrap"></div>
             |__ <a class="ow_logo_img" href="https://www.mysite.com/"></a>

Then I went into ow_themes>(current theme)>master_pages>

edited dndindex.html to look like this:
   
                <div class="ow_page_container">
                <div class="ow_logo_wrap">
                {if isset($imageControlValues.logoImage.src)}
                <a href="/dashboard" class="ow_logo_img"></a>
                {else}
                <a href="/dashboard">{$siteName}</a>

edited general.html to look like this:

        <div class="ow_page_container">
        <div class="ow_logo_wrap">
         {if isset($imageControlValues.logoImage.src)}
         <a href="/dashboard" class="ow_logo_img"></a>
         {else}
         <a href="/dashboard">{$siteName}</a>
         {/if}
         </div>

However after saving both files, the logo still only references www.mysite.com rather than the dashboard specifically.  I also tried typing the entire specific url https://www.mysite.com/dashboard into the href and it still does not work.

Actually, I should be able to edit the link to whatever I want, but nothing is working.  Do I need to place this information somewhere else?
The Forum post is edited by 20 Hours a Day May 26 '14
Alia Team
Alia May 27 '14
Robert, try doing this again, but this time before checking the result on front end, enable DEV MODE in ow_includes/config.php ( set to "true"). This will clean site's cache and your new changes should get applied. Once you are done checking don't forget to disable DEV MODE ( set to "false").

Note: always enable DEV MODE when you are changing any .html file, otherwise they might not get applied immediately.
20 Hours a Day
20 Hours a Day May 27 '14
Aliia,

Thank you for the advice, setting the DEV mode is something that I always make sure I do, however just to be sure I went back in there and tried it again with no initial success.  I am running the responsive Liquid theme from the candystore.  I compared the ow_themes>origin>master_pages> that is default with oxwall to the ow_themes>ocs_liquid>master_pages>and noticed that the dndindex.html and general.html for the origin theme did not contain the following:

    <div class="ow_page_container">
        <div class="ow_logo_wrap">
          {if isset($imageControlValues.logoImage.src)} <----------
              <a href="/dashboard" class="ow_logo_img"></a>
          {else} <----------
              <a href="/dashboard">{$siteName}</a>
          {/if}   <----------
        </div>

so I removed those lines to make my final dndindex.html and general.html edit look like this:

    <div class="ow_page_container">
        <div class="ow_logo_wrap">
              <a href="/dashboard" class="ow_logo_img"></a>
        </div>

------------------------------------------------------------------
Now everything is sorted for the logo link, no other changes where necessary.

Please let me know if by removing those lines will affect any other part of my site?