Jump to content

Search the Community

Showing results for tags 'functions.php'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 2 results

  1. 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?
  2. Hi - custom taxonomies are important to me, but I can't seem to get them to work in PageLines Lite. I've installed and activated the Pagelines Customize plugin and have added this code to the functions.php file in the pagelines-customize folder: /** * Custom taxonomy for recipe ingredients * Following guidelines in Dig into Wordpress 3.3 p.35 * Also references code from: http://codex.wordpress.org/Taxonomies * */ function ingredients_init() { // create a new taxonomy register_taxonomy( 'ingredients', 'post', array( 'hierarchical' => false, 'label' => __( 'Ingredients'), 'query_var' => true, 'rewrite' => array( 'slug' => 'ingredient'), ) ); } add_action( 'init', 'ingredients_init' ); Normally when I use this code, when I open up the "Posts" menu item in the WP admin side bar I will get an additional menu item for each taxonomy I create under "Tags", so when using the above example I should get a menu item for "Ingredients" where are can add new terms, assign them to posts etc. Also any posts tagged with a term from one of these taxonomies (e.g. "eggs") should be listed when I use a url of the form: http://myblog/ingredient/eggs but I'm getting a 404 error instead. Are custom taxonomies not supported in Pagelines or do I need to set these up in a different way? If custom taxonomies are not supported, I'm not sure that Pagelines is going to work for me :-(