Erkan-Erdogan Posted November 13, 2014 Share Posted November 13, 2014 Hi. I'm trying to edit some stuff on the picures at the bottom (see attachment) but i can't find the files in my public_html. I know where i can chance the pictures and links - so thats not an issue. Could you please tell me what file i have to edit? Thanks and sorry about the crappy english Link to comment Share on other sites More sharing options...
nadie Posted November 13, 2014 Share Posted November 13, 2014 Tab Modules -> Modules Search Module: Theme configurator - (themeconfigurator) Attached image Link to comment Share on other sites More sharing options...
Erkan-Erdogan Posted November 13, 2014 Author Share Posted November 13, 2014 (edited) I know that .. i'm looking for the file on my FTP, so i can edit it manually. Tab Modules -> Modules Search Module: Theme configurator - (themeconfigurator) Attached image Edited November 13, 2014 by Erkan-Erdogan (see edit history) Link to comment Share on other sites More sharing options...
ajaxthemestudios Posted November 13, 2014 Share Posted November 13, 2014 I know that .. i'm looking for det file on my FTP, so i can edit it manually. You can browse to yoursiteroot/modules/themeconfigurator/img folder. The images are inside and you can replace them with images of the same size and fine name. However, you can also replaced the images by editing them through module configuration option. Link to comment Share on other sites More sharing options...
Erkan-Erdogan Posted November 13, 2014 Author Share Posted November 13, 2014 You can browse to yoursiteroot/modules/themeconfigurator/img folder. The images are inside and you can replace them with images of the same size and fine name. However, you can also replaced the images by editing them through module configuration option. Hi .. I want to change the link (see attachment) with this Ajax popup line: <a href="#" class="opartAjaxPopupLink" id="opartAjaxPopupId_3_50_50_null_1">Betaling</a> thats my problem Link to comment Share on other sites More sharing options...
ajaxthemestudios Posted November 13, 2014 Share Posted November 13, 2014 Hi .. I want to change the link (see attachment) with this Ajax popup line: <a href="#" class="opartAjaxPopupLink" id="opartAjaxPopupId_3_50_50_null_1">Betaling</a> thats my problem I am not sure I understand but let me try. If you want to add the class tag "opartAjaxPopupLink" and ID tag "opartAjaxPopupId_3_50_50_null_1" to the current one in your attached image, go to yoursiteroot/modules/themeconfigurator/views/template/hook/hook.tpl. The A tag code to edit starts from line 35 as seen below: <a href="{$hItem.url|escape:'htmlall':'UTF-8'}" class="item-link"{if $hItem.target == 1} onclick="return !window.open(this.href);"{/if} title="{$hItem.title|escape:'htmlall':'UTF-8'}"> {/if} {if $hItem.image} <img src="{$link->getMediaLink("`$module_dir`img/`$hItem.image`")}" class="item-img {if $hook == 'left' || $hook == 'right'}img-responsive{/if}" title="{$hItem.title|escape:'htmlall':'UTF-8'}" alt="{$hItem.title|escape:'htmlall':'UTF-8'}" width="{if $hItem.image_w}{$hItem.image_w|intval}{else}100%{/if}" height="{if $hItem.image_h}{$hItem.image_h|intval}{else}100%{/if}"/> {/if} {if $hItem.title && $hItem.title_use == 1} <h3 class="item-title">{$hItem.title|escape:'htmlall':'UTF-8'}</h3> {/if} {if $hItem.html} <div class="item-html"> {$hItem.html} <i class="icon-double-angle-right"></i> </div> {/if} {if $hItem.url} </a> You can add ID and class to the A tag here but don't remove the once there except you know what you are doing. Please make sure you use an override in your theme folder instead of editing the base file. Link to comment Share on other sites More sharing options...
Erkan-Erdogan Posted November 13, 2014 Author Share Posted November 13, 2014 (edited) Thats exactly what im looing for .. but is there an other way to make the link in that banner pop up in the Java Popup? Can i add it in the Optional HTML somehow? (see attachment) I am not sure I understand but let me try. If you want to add the class tag "opartAjaxPopupLink" and ID tag "opartAjaxPopupId_3_50_50_null_1" to the current one in your attached image, go to yoursiteroot/modules/themeconfigurator/views/template/hook/hook.tpl. The A tag code to edit starts from line 35 as seen below: <a href="{$hItem.url|escape:'htmlall':'UTF-8'}" class="item-link"{if $hItem.target == 1} onclick="return !window.open(this.href);"{/if} title="{$hItem.title|escape:'htmlall':'UTF-8'}"> {/if} {if $hItem.image} <img src="{$link->getMediaLink("`$module_dir`img/`$hItem.image`")}" class="item-img {if $hook == 'left' || $hook == 'right'}img-responsive{/if}" title="{$hItem.title|escape:'htmlall':'UTF-8'}" alt="{$hItem.title|escape:'htmlall':'UTF-8'}" width="{if $hItem.image_w}{$hItem.image_w|intval}{else}100%{/if}" height="{if $hItem.image_h}{$hItem.image_h|intval}{else}100%{/if}"/> {/if} {if $hItem.title && $hItem.title_use == 1} <h3 class="item-title">{$hItem.title|escape:'htmlall':'UTF-8'}</h3> {/if} {if $hItem.html} <div class="item-html"> {$hItem.html} <i class="icon-double-angle-right"></i> </div> {/if} {if $hItem.url} </a> You can add ID and class to the A tag here but don't remove the once there except you know what you are doing. Please make sure you use an override in your theme folder instead of editing the base file. Edited November 13, 2014 by Erkan-Erdogan (see edit history) Link to comment Share on other sites More sharing options...
ajaxthemestudios Posted November 13, 2014 Share Posted November 13, 2014 I do not think that is what that field is meant for. Depending on your expertise, you may have to look for some jquery plugin which would enable you add a lightbox to that module. Try http://sachinchoolur.github.io/lightGallery/index.html Link to comment Share on other sites More sharing options...
Erkan-Erdogan Posted November 13, 2014 Author Share Posted November 13, 2014 Okay thanks but i want to use ajax for the popups. I tried to replace <a href="http://www.prestashop.com/" class="item-link" title=""> with <a href="#" class="opartAjaxPopupLink" id="opartAjaxPopupId_3_50_50_null_1">/a> In firebug. And it worked how i want it to. But i don't know where i can i change it to make it permanent? Link to comment Share on other sites More sharing options...
ajaxthemestudios Posted November 14, 2014 Share Posted November 14, 2014 Create an override for the yoursiteroot/modules/themeconfigurator/views/template/hook/hook.tpl inside yoursiteroot/themes/yourtheme/modules/themeconfigurator/views/template/hook/hook.tpl. Then edit the hook.tpl file inside your theme module folder as below: <a href="{$hItem.url|escape:'htmlall':'UTF-8'}" id="opartAjaxPopupId_3_50_50_null_1" class="item-link opartAjaxPopupLink"{if $hItem.target == 1} onclick="return !window.open(this.href);"{/if} title="{$hItem.title|escape:'htmlall':'UTF-8'}"> {/if} {if $hItem.image} <img src="{$link->getMediaLink("`$module_dir`img/`$hItem.image`")}" class="item-img {if $hook == 'left' || $hook == 'right'}img-responsive{/if}" title="{$hItem.title|escape:'htmlall':'UTF-8'}" alt="{$hItem.title|escape:'htmlall':'UTF-8'}" width="{if $hItem.image_w}{$hItem.image_w|intval}{else}100%{/if}" height="{if $hItem.image_h}{$hItem.image_h|intval}{else}100%{/if}"/> {/if} {if $hItem.title && $hItem.title_use == 1} <h3 class="item-title">{$hItem.title|escape:'htmlall':'UTF-8'}</h3> {/if} {if $hItem.html} <div class="item-html"> {$hItem.html} <i class="icon-double-angle-right"></i> </div> {/if} {if $hItem.url} </a> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now