Jump to content
joaoreis

Customizing custom logo for a specific page or template

Recommended Posts

joaoreis    0
joaoreis

Hello! Friends,

 

 I would like to replace the custom logo only for some specific pages, is it possible to do?

 

 I've found a hook "pagelines_before_branding_icons", but i don't know if i'm using it right.

 

 Here is the code i added to the pagelines-customize/function.php

 

   function frontlogo(){

echo '<a id="39" class="plbrand mainlogo-link" title="InteSys" href="http://desenv.intesys.com.br/home/frontmail-email-marketing/"><img class="mainlogo-img" alt="InteSys" src="image link here" />
</a>
';
// the page id is 39 and 222.
}

add_action( 'pagelines_before_branding_icons', 'frontlogo' );

 

 In this case the image is added on all pages and what i wanted to do is replace the current image by another.

 

 Any help?

 

Many thanks!

Share this post


Link to post
Share on other sites
joaoreis    0
joaoreis

 It worked! I've added the code you said on the php and also add this code on the css file ".page-id-39  #branding img.mainlogo-img {display:none}" and now it's working.

 

 Thanks a lot!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • lionel1
      By lionel1
      Hi,
      i try to put some images (Logos) in the Agency module / clients module section
      But i only can put 6 logos though the module propose to add more item
      Thanks for ur help
      Lionel 
      Capture d’écran 2017-06-27 à 20.55.27.png 
    • casseysdesigns
      By casseysdesigns+
      In the past I would use nextbox for this task. However, Platform 5 does not have nextbox. I will do my best to describe what I am trying to do.
      I am creating a template for coaches, each product has its own link but they all share a common coach id. I want to set up the templates with the links for each product with a variable for the coach id so that I can change the coach id for all the links on the site by just changing the value of the variable $coachId. To do this I'll need to do something like the following...
      <a href="salesite.com/productcodes/referringRepId=<?= $coachId ?>" target="_blank">Product Purchase Link</a> Is it possible to do this with Platform 5?
    • Michael Kummer
      By Michael Kummer+
      Hi guys,
      I just migrated from DMS to PageLines Platform 5 and noticed that after uploading my fav icon to Site Images, the default PageLines icon is still showing in my browser as well as in the HTML source code.
      The page in question is www.michaelkummer.com - is there anything else I need to do in order to update the favicon?
      Thanks
      Michael


    • janpeeters
      By janpeeters+
      I read a lot lately about how much faster PHP 7 is than older versions. Is PL5 compatible with 7?
      Does anyone have experience with running their whole PL5 site on PHP 7? Would love to hear your experiences.
      Thanks, Jan
    • dymond
      By dymond+
      I've been trying to upload a video to use as a video background, but the size was 12m, and the alotted max file size is 8m. I downloaded a couple of pugins that increase the size by creating php.ini files and all of that jazz, but to no avail. It would say (Max file size = 250mb) but after I uploaded I would get an "HTTP ERROR",
      Soooo I logged into my cpanel and saw that the php I was using was 4 version out of date. I upgraded my php to PHP 5.6 and now I get
      Fatal error: Out of memory (allocated 39583744) (tried to allocate 15 bytes) in /homepages/39/d200014696/htdocs/dymondentertainment.com/wp-content/themes/dms/dms/includes/less.plugin.php on line 848
      When I activiate another theme that is not pagleines, the site works fine.... but will no longer work with Pagelines DMS Version 2.2
       
      My site has no gone dark. What can I do?
×