Jump to content

Search the Community

Showing results for tags 'hooks'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 10 results

  1. Hi, I would like to add to every page a different logo. How can i do this? I read something about hooks, but there is no further information. Or is this possibile with css? Thx Corina
  2. Hi, I've found a hook to place content before the feature nav: pagelines_feature_nav_before http://api.pagelines.com/hooks But what I'd like is something like pagelines_feature_nav_after which doesn't exist... or I can't find it. Is there such a hook? thanks http://naturalsinger.com
  3. [Note - I previously started this conversation in a separate thread but I want to open it up for more discussion so am reposting here.] I am new to Pagelines and am trying to understand how build a child theme from scratch. I have some basic HTML/CSS knowldege but I am currently a beginner when it comes to PHP & Javascript. I have built some Wordpress sites before but have only ever made basic CSS modifications to an existing theme. I have never built a theme or child theme before. I want to learn how to create/customise a child theme in Pagelines but I have no idea where to start, and can't find any documentation to help me. I just watched the PDET Video tutorials. They were a little out of date but still very helpful in understanding how to create Pagelines Sections, even for a beginner coder like me. The problem is there are no more video tutorials! Sections were covered, but where are the rest of the promised videos on Themes and Plugins? We need a series of tutorials (maybe as videos) taking us though the steps of building a Pagelines child theme from scratch (or from the base child theme), similar to the sections video tutorials. I have looked at the Theming page but it does make a lot of assumptions about our knowledge. I currently don't really understand how all the different components fit together in creating a child theme. Here are my questions: To build a child theme for Pagelines, do we need to know Wordpress theming already? If yes, are there any good tutorials out there to take us through the process? How do all the components of a child theme fit together? How do hooks and actions fit into the design? Do we need to learn LESS before we begin? Any good resources for this? Is there an example theme that uses bootstrap available? I want to understand how to use the grid. Is it easy to take an existing Wordpress theme and convert it into a Pagelines child theme? How do I do this? Would I even want to, or is it too long-winded? What are the best tools to use? How do you see what you are doing (CSS changes etc.)? Are their any video tutorials explaining how to create child themes for Pagelines? I like Pagelines in principle, but these days very few of us would build a WP theme from scratch for a new website - we'd simply take an existing theme and customise it. Pagelines does not appear to have much choice in this regard, since there are currently very paid few child themes available. Thanks in advance.
  4. Hello, I'm trying to add a tagline just above the nav in brandnav. But when I use the hook "brandnav_after_brand", my navigation within brandnav disappears completely. http://diskshred.it/ add_action('brandnav_after_brand', 'brandnav_tagline'); function brandnav_tagline() { ?> <p>TEST</p> <?php }
  5. Well I'm just a question-asking fool this week! FYI- my site is in maintenance mode. So, I needed to use hooks to add change/add social icons. I didn't have the brain space to figure out hooks, so I bought the hooker plugin. I added the following html to pagelines_before_branding_icons hook: <div class="icons" style="bottom: 12px; right: 1px;"> <a class="facebooklink" href="https://www.facebook.com/khadijaannette"target="_blank"> <img alt="Facebook" src="http://khadija-annette.com/wp-content/uploads/2013/icons/facebook.png"> </a> <a class="pinterestlink" href="http://pinterest.com/khadijaannette/" target="_blank"> <img alt="Pinterest" src="http://khadija-annette.com/wp-content/uploads/2013/icons/pinterest.png"> </a> <a class="twitterlink" href="https://twitter.com/KhadijaAnnette" target="_blank"style="opacity: 0.5;"> <img alt="Twitter" src="http://khadija-annette.com/wp-content/uploads/2013/icons/twitter.png"> </a> <a class="tumblrlink" href="http://tumblr.com/khadijaannette/" target="_blank"> <img alt="Tumblr" src="http://khadija-annette.com/wp-content/uploads/2013/icons/tumblr.png"> </a> <a class="linkedinlink" href="http://www.linkedin.com/in/khadijaoconnell"target="_blank"> <img alt="LinkedIn" src="http://khadija-annette.com/wp-content/uploads/2013/icons/linkedin.png"> </a> <a class="emailink" href="mailto:[email protected]/" target="_blank"> <img alt="Email" src="http://khadija-annette.com/wp-content/uploads/2013/icons/email.png"> </a> <a class="rsslink" href="http://khadija-annette.com/feed/" target="_blank"style="opacity: 0.5;"> <img alt="RSS" src="http://khadija-annette.com/wp-content/uploads/2013/icons/rss.png"> </a> The icons are great and lined up nicely and exactly where they are supposed to be except... 4 of them are repeated on the left side of the page above my fixednav bar. What in the world is going on?? Also, I just noticed that the code for the errant icons actually matches the Pagelines code for the included social icons that you edit in Site Options. WHY? What in the world did I do wrong this time? ***UPDATE*** Weird freaking other thing happened in sync with the extra icons- my logo is no greyed out or has some opacity applied when I'm not hovering on it. This is new. I didn't do this. Well, I obviously did it but I don't know how. Oh god, make it end. Bree
  6. I am wondering how to add a hook to one site in a multisite installation. I would like to display a tel:phone number above the social icons in the header. I'm fine with adding the hook, I just don't know where to put it.. Any help would be appreciated. Thanks.
  7. I am wondering if there is any way for me to get a facebook like button to show up AFTER the site title/logo in the header? I am close -- was able to add one above the title/logo, but cannot get it to align to the right of it. I accomplished this by adding a hook into the functions.php: add_action('pagelines_site_logo', 'fblike'); function fblike(){ ?> <div class="addthis_toolbox addthis_default_style "> <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a> </div> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-50a1c3640c621b4b"></script> <?php } You can see the site here: http://updated-kid2kid.com/test/ (it is a subsite) I tried to change the hook function to 'pagelines_after_site_logo' and 'after_pagelines_site_logo' without any luck. Any idea what I can do to accomplish this the way I would like?
  8. I am attempting to write a custom function to send the header and footer areas of the the pages to a .net web service anytime the content of the header or footer area is updated. I have worked out the WordPress action hook for when the menus are updated, add_action( 'wp_update_nav_menu', 'write_html' );, but I need to also call my function when the header or footer sections are updated via pagelines. We have custom sections that are being used for the header and footer areas. I have looked through the Action hooks here: http://api.pagelines.com/hooks and watched the hook tutorial here: http://www.pagelines.com/docs/base-child-theme The video is talking more about Filters than Actions (using WordPress terminology) and the list of Actions in the api page doesn't show anything that might relate to updating a specific section. So I have 2 questions: 1. Is there a pre-exisiting Action hook for when a custom section's site wide settings are updated such as through PageLines > Page Options and selecting the section? 2. If not, how can a custom Action hook be added to a section's update?
  9. Hi All, I use Slidedeck 2 and want to use some shortcode to run in a pop up window use in a lightbox style popup. The code is <?php eco do_shortcode("[slideeck2 id=xxxx]");?> I can not find anywhere in 2.3 to add php to be used in a hook. How do I do that. Also there will I am sure be other bit of php I want to use in time one web site is www.johnnbroome.co.uk If it is a plugin then that's fine. Cheers John
×