Jump to content

Archived

This topic is now archived and is closed to further replies.

lburns

Pagelines Customize Plugin

Recommended Posts

lburns

Hello,

 

I've installed several times but can't seem to make the functions.php file for this plugin to make the changes.  I used this filter example from your documentation page to test it and should it not change the 'read more' to what's stated in this hook?

 

add_filter( 'continue_reading_link_text', 'add_my_continue' );
    function add_my_continue() {
    return 'Continue Reading <i class="icon-beer"></i>';
}
 
I added this to the plugin functions.php file as well as some other hooks you have displayed in your documentation, but nothing is taking effect:
 
 
 
Any help is greatly appreciated.

Share this post


Link to post
Share on other sites
batman

HI lburns

You need to add this hook in the functions.php on a child theme

 

I use for this a Danny´s Child Theme, this works fine to me in all update.

https://github.com/Dannyholt/skeleton

 

You can install the .zip like a theme in your dashboard > themes > upload

You need activate the Theme and the copy/paste your Hook in the functions.php

 

 

 


Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
lburns

Hi,

 

I uploaded the child theme instead of using the plugin and the code isn't working.  I've added the first code below to the functions.php file and it works, but the other does not.  I also have font awesome installed too.

 

 

this works:

 

add_filter( 'the_content', 'add_my_signature' );
    function add_my_signature( $content ){
        if( ! is_single() ) // if were not on a post/page just return the content.
    return $content;
        $sig = '<br />Thanks for reading!'; // Add a sig to the post/page content and return.
    return $content . $sig;
}

 

this doesn't:

 

add_filter( 'continue_reading_link_text', 'add_my_continue' );
    function add_my_continue() {
    return 'Continue Reading <i class="icon-pencil"></i>';
}

 

Thanks -
 

Share this post


Link to post
Share on other sites
lburns

As a follow-up...I just added a shortcode to the first block of code and didn't use the latter...fyi.  Still not sure why that didn't work, but I worked around it.

 

Thanks - 

Share this post


Link to post
Share on other sites
Danny

On quick look, the issue is that you're using PageLines DMS, but using hooks that are used for PageLines Framework. That is why they're not working.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
lburns

Okay, makes sense.  I just took them from your docs page ... it didn't specify.

Share this post


Link to post
Share on other sites

  • Similar Content

    • Lisa Haran
      By Lisa Haran+
      Hi 
      I have a map here http://www.iloveoffset.com/maps/
      I want to add several pointer locations to the map, but when I do they do not appear.
      On this map there are 2 pointer locations and as you can there is only one visible.
      Earlier today I added 7 and could only see 4 so there is something odd going on.
      My theme is up to date
    • clj182
      By clj182+
      Hello,
      I've been having trouble unlocking the template section for past couple of weeks. When I try clicking nothing happens. 
      I've deleted my custom css and removed plugins. Im down to having only the following plugins:
      Akismet
      Contact Form 7
      DMS Professional Tools
      Pagelines Updater
      WooCommerce
      It was working fine before i have no idea what's going on with it.
    • flourishdesignstudio
      By flourishdesignstudio+
      My DMS 2 site http://www.heart-stone.com/ will not save any new custom css... I can still edit templates and publish those but any custom css that I enter never saves.
      All WP files, themes, and plugins are up to date. 
      Any thought about what might be causing this?
    • flourishdesignstudio
      By flourishdesignstudio+
      Is there a way to edit the custom CSS via FTP? I know I can edit the custom code in the Chrome editor but is there a file path I can use to find and edit the CSS directly from our FTP?
      Thanks in advance for the help!
    • nizami
      By nizami+
      Using navbar section with correctly configured WP menu to display main navigation at https://elenaangel.com. 
      All fine in desktop viewport. Menu displays twice in hamburger mode. How to fix this please? 

×