Forum Replies Created
-
AuthorPosts
-
manavecplan
MemberHey Paul,
Almost there! 😀
The original code you gave me works just fine in theory:
$args['home'] = ' <img src"/images/some-image-of-a-home.png"> '; $args['sep'] = ' <img src"/images/some-other-image.png"> ';
However, only the separators kick in when I use the following code:
$args['home'] = ' <img src="http://i.imgur.com/S8XY6Nx.png">'; $args['sep'] = ' <img src="http://i.imgur.com/YgivoWd.png">';
It makes no sense to me because the formats are identical...
Also, the following works just fine:
$args['home'] = ' Home '; $args['sep'] = ' <img src="http://i.imgur.com/YgivoWd.png">';
manavecplan
MemberIt's a local sandbox for now...hence, no link available.
And, now, unfortunately, the breadcrumbs aren't even showing up! 🙁
Note: I have no other PHP except the default Sample theme PHP and this code.
manavecplan
MemberThanks for replying so quickly Paul!
This is very similar to what I had tried(copy-pasted from a site) but it doesn't work.
In fact, it gives me a parse error(just tried again). 🙁
manavecplan
MemberThanks for replying guys!
I didn't know about the / issue so that's a great insight in any case...
The problem persists though...now, tried it with the "/fonts" and simple "fonts". Should I be attempting to rename the folder or something?
P.S. Lovely mod of Parallax pro on your site...the "Our Work" Section seems to be broken though.
manavecplan
MemberEh? Which bits Anita? Can't seem to pick it up... 🙁
Weirdly enough, the CSS for #topnav and #footer is EXACTLY the same. Yet, the difference exists...
manavecplan
MemberThat's very strange...thought I had keyed it in correctly.
This is my current PHP but it still breaks formatting(please ignore the double hrefs)...
//ADMIN: Customize the footer function bg_footer() { ?> <div id="footer"> <div class="wrap"><span class="left"> © <!--?php echo date('Y'); ?-->-City Slickin'. All Rights Reserved.</span> <span class="right">Powered by some taste, <a href="http://www.yoyohoneysingh.com/">timeless music</a> and the spirit of Bombay. </span></div> </div> <!--?php <br ?-->} remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 ); remove_action( 'genesis_footer', 'genesis_do_footer' ); remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 ); add_action( 'genesis_after', 'bg_footer' );
FWIW, this is how my header is coded...
//ADMIN: Add the top navigation function topnav() { echo ' <div id="topnav"> <div class="wrap"><span class="left"><span class="from-the-blog">Like reading here?</span><a class="twitter-follow-button" href="https://twitter.com/cityslickin" data-show-count="false" data-size="medium">Follow @cityslickin</a> <script type="text/javascript">// <![CDATA[ !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs"); // ]]></script></span><span class="right"><a class="first" href="http://www.cityslick.in">Home</a><a href="http://cityslick.in/about-us//">About Us</a><a href="http://cityslick.in/get-in-touch/">Get in Touch</a></span></div> </div> '; } add_action( 'genesis_before', 'topnav' );
manavecplan
MemberAlmost have it nailed...the following code works. 🙂
//ADMIN: Custom dashboard logo function custom_logo() { echo ' <style type="text/css"> #wp-admin-bar-wp-logo > .ab-item .ab-icon { background-image: url(http://www.cityslick.in/custom/img/dashboard-logo.png) !important; background-position: 0 0; } #wpadminbar #wp-admin-bar-wp-logo.hover > .ab-item .ab-icon { background-position: 0 0; } </style> '; } add_action('admin_head', 'custom_logo');
The only niggle I have left is the size of the logo itself. For some reason, WordPress seems to be expanding my 20px x 20px logo to 30px x 30px. Hopefully, it's just a cache issue...
manavecplan
MemberThanks for replying Anita!
While you're absolutely correct in that the plugin you've mentioned customizes a lot more, I'm just looking to get the dashboard logo activated.
The plugin has a ton of other code which I don't really need...and my rule of thumb is to minimize the plugins I load on any of my sites. 🙂
I think the reason the logo doesn't display in the dashboard is because of where the png file has been saved...but I can't pinpoint the ideal location.
As of now, my customisations are being run from a folder called 'custom' in the root.
manavecplan
MemberThanks for responding, John...
When I try selecting each item via Firebug, I get
.genesis-nav-menu a
as a selector.
I set it to
width: 20%
but nothing really happened.
I even tried setting
.genesis-nav-menu
to
width: 20%
but no go.
manavecplan
MemberThanks Jen!
My new code is as follows:
function load_scripts() {
wp_register_script('fokus', get_stylesheet_directory_uri(). '/js/fokus.js');
wp_enqueue_script('fokus');
}
add_action('wp_enqueue_scripts', 'load_scripts');I don't see where I'm going wrong...now everything seems to be correct and it's still not being loaded as per my page source. And it's apparently childishly simple according to the example by the js dev...
Still no cigar... 🙁
manavecplan
MemberAlmost there, John.
This is my current code:
function load_scripts() {
wp_register_script('fokus', get_template_directory_uri(). '/js/fokus.js');
wp_enqueue_script('fokus');
}
add_action('wp_enqueue_scripts', 'load_scripts');However, it refuses to load from the js folder in my child theme. What am I doing wrong here?
My site is: http://cityslick.in/ and the js is from https://github.com/hakimel/Fokus
manavecplan
MemberThanks so much John!
Would the following be a valid example of using the enqueue script?
<code>
function ronald_load_scripts() {
if ( ! is_admin() ) {
wp_register_script( 'zoomPercent', get_template_directory_uri() . '/js/zoom.js', array( 'jquery' ) );
wp_register_script( 'infiniteCarousel', get_template_directory_uri() . '/js/cursoule.js', array( 'jquery' ) );wp_enqueue_script( 'zoomPercent' );
wp_enqueue_script( 'infiniteCarousel' );
}
}
add_action( 'wp_enqueue_scripts', 'ronald_load_scripts' );</code> -
AuthorPosts