Forum Replies Created
-
AuthorPosts
-
CarloMember
Hi Hashim.
Your code looks great for what you wanted to do and there are no bad practices.
To show the code in a special field, you'll find a button labeled code above the forum reply field. Click on it before you paste your code and click on it again after you paste your code.
Thank you for adding yourself to my mailing list. Although you figured it out I'll still add the tutorial.
CarloMemberHi Dawn. Sorry the code didn't work. Try this:
add_filter( 'genesis_grid_loop_args', function( $args ) { $args[ 'grid_image_class' ] = 'aligncenter'; $args[ 'feature_image_class' ] = 'aligncenter'; return $args; } );
CarloMemberHi Hashim. This is a solution that is going to take a lot of code and one that I think others might need too, so I am going to put the tutorial on my site.
I wrote a tutorial for a similar solution: http://carlomanf.id.au/local-global-sidebars/ but that's for if you want to seamlessly combine two widget areas in the one sidebar.
Add yourself to my mailing list to be notified when the tutorial is ready.
January 15, 2015 at 9:29 am in reply to: How to make a very simple landing page? (Newbie help) #137540CarloMemberHi Yossif. Dom is correct about what I was talking about.
To remove the comments from the page, you actually just turn them off in the page editing screen. The option is located in the Discussion section, which you may need to show by clicking on Screen Options if it's not already showing.
This is the code you want to add to the template
page_sales.php
, anywhere between the line<?php
and the linegenesis();
:remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' ); remove_action( 'genesis_after_header', 'genesis_do_subnav' ); remove_action( 'genesis_after_header', 'display_generate_box', 15 );
That will remove the generate box, subnav and the footer widgets.
The ads are going to be more difficult to remove because you used the Simple Hooks plugin, which is called Simple for a reason. It's really designed for if you want to add content to every page, not some pages. This is where it becomes difficult to help you out without access to your code.
CarloMemberHi Dawn. I think I figured it out. It's because you said this:
I use grid loop…
The grid loop forces images to align to the left. But I think you should be able to change that, by adding the following code to your theme functions:
add_filter( 'genesis_grid_loop_args', function( $args ) { $args[ 'grid_image_class' ] = ''; return $args; } );
Let me know if that works.
CarloMemberSorry niceup. This should work:
$price = sprintf( 'Price %s', genesis_get_custom_field( '_listing_price' ) ); $address = sprintf( 'Cash Flow %s', genesis_get_custom_field( '_listing_cashflow' ) );
CarloMemberSafari on PC is old and I'm not sure it's supported anymore, so that might explain it.
CarloMemberHi Dawn. Go into your Genesis theme settings and the section 'Content Archives'. Have you selected Image Alignment none?
January 14, 2015 at 6:18 am in reply to: Cannot add continue reading to content post archive #137423CarloMemberHi there. I use similar code on my own site and it works. Try this:
// Add Read More Link to Excerpts add_filter('excerpt_more', 'vwl_get_read_more_link', 20); function vwl_get_read_more_link( $default ) { if ( is_admin() ) return $default; return '… <a href="' . get_permalink() . '">[Continue Reading]</a>'; }
Are you sure you're pasting the code into the right theme?
January 14, 2015 at 6:07 am in reply to: How to Change Copyright text etc at bottom of Parallax Pro #137421CarloMemberSilly question: I used the plugin, which was great and solved two problems at once. But does it write those changes to the code? So that once I use it, I can deactivate it?
Good question Mary and the answer is no. It doesn't write the changes to the code and they'll stop taking effect if you deactivate the plugin.
CarloMemberHi Blogelina. Add this code to the bottom of your theme stylesheet to get your links to work:
.headerimg { width: 126px; height: 70px; }
However, I understand this is a prominent credit back to you for anyone who uses your theme on their site? To be honest, I can't see a lot of people wanting to use a theme with such a prominent ad built in?
January 14, 2015 at 5:55 am in reply to: How to make a very simple landing page? (Newbie help) #137418CarloMemberHi Yossif. You don't want to add any CSS code (i.e.
display: none;
) to do this. What you actually want to do is edit the templatepage_landing.php
. It should have a series of lines starting withremove_action
and you'll want to add more of these to remove each element of the page that you don't want. Can you share the link to the page you're talking about?
CarloMemberHi Mealtog. This is not really something that needs a plugin. I recommend you alter your theme with the code in the tutorials Christoph shared.
CarloMemberHi Hashim. Add the following code to your template
front-page.php
(i.e. after the<?php
line):remove_action( 'genesis_sidebar', 'genesis_do_sidebar' ); add_action( 'genesis_sidebar', 'YOUR_FUNCTION_HERE' );
...where
YOUR_FUNCTION_HERE
is the name of the function you have created that includes the call togenesis_widget_area
.If you don't have a template
front-page.php
, create it and give it the following contents:<?php remove_action( 'genesis_sidebar', 'genesis_do_sidebar' ); add_action( 'genesis_sidebar', 'YOUR_FUNCTION_HERE' ); genesis();
Hope that makes sense. If you need further clarification let me know.
CarloMemberHi there. I'm not an expert with sliders, but the code that Marcy provided is slightly incorrect. It should be:
/*display: none; */
CarloMemberHI there. Sometimes when registering post types and taxonomies, you need to do a hard refresh. More info here:
http://www.refreshyourcache.com/en/cache/
CarloMemberI'm glad you got it to work Kary. I still think that
if ( is_front_page() )
is better thanif ( is_home() || is_front_page() )
because there's a chance that usingif ( is_home() || is_front_page() )
will cause your facebook image to show on another page other than the front page, depending on how your site is configured. But that's up to you.
CarloMemberTo be honest, grayflo, if you're not going to be working with an expert designer, it's unlikely you'll unlock the full benefit of using custom post types and custom fields anyway. (But feel free to prove me wrong!) You might as well stick to categories and save yourself the hassle.
CarloMemberWhich browser are you using on your PC, and which browser are you using on your Mac? Usually rendering varies between the browser software but not so much between PC/Mac.
CarloMemberHi Tim. Do you mean in the menu bar? You can create the post, and then add a menu item for it as a sub-item of Clubs.
-
AuthorPosts