Forum Replies Created
-
AuthorPosts
-
Ben SiegfriedMember
I'm wanting to do this with the Agency's home page, altering the home.php file. I've already gotten the blog to show under the slider. Will this method you are suggesting with the arg code work the way I have it? I have no idea how the code string should actually look.
Ben SiegfriedMemberI don't follow what you are saying. I don't even see a Custom Redirect URI area anywhere when I put a post in edit mode.
Ok, so the Blog page where the post show up I want those Title links to NOT go to the individual blog post. I want to be able to add a new post and have it show up on the Blog page with full content showing, but have the Title of each blog post to not link to each post's page.
Ben SiegfriedMemberI found that adding these to your functions.php file also work but then you have to add in CSS margin, padding, border styling to bring back those settings. See code below for this method. Removing the shortcodes from Genesis Simple Edits plugin is much cleaner and quicker, it removes only what I wanted removed.
// Remove post meta
remove_action('genesis_after_post_content', 'genesis_post_meta');// Remove the post info function
remove_action('genesis_before_post_content', 'genesis_post_info');.post {
margin:0px;
padding:0px;
border:0px solid #000000;
}
Ben SiegfriedMemberThanks, that works.
Ben SiegfriedMemberOf these two snippets from the functions.php file, what and how would I change them to remove the .post-meta & .post-info text, and would this also remove the padding and margins, and borders declarations in CSS for each?
/** Customize the post info function */
add_filter( 'genesis_post_info', 'post_info_filter' );
function post_info_filter($post_info) {
if (!is_page()) {
$post_info = '[post_date] by [post_author_posts_link] · [post_comments] [post_edit]';
return $post_info;
}}/** Customize the post meta function */
add_filter( 'genesis_post_meta', 'post_meta_filter' );
function post_meta_filter($post_meta) {
if (!is_page()) {
$post_meta = '[post_categories before="Filed Under: "] · [post_tags before="Tagged: "]';
return $post_meta;
}}Ben SiegfriedMemberThanks Susan, but I don't see how I can do what I really want to do. I see there is CSS in the code snippets page you shared. I was able to get the effect of removing the post-meta and post-info by taking the font-size in CSS down to '0px', but is there a better way at removing these like with short code… and keeping the margins and padding, and border styling? I want to remove the text without using CSS.
By using the remove action on .post-meta it removed all of the CSS declarations. The only declaration I want to be affected is the font-size; I want the text removed, and want to know if there is a way to remove it with short code or remove action, WITHOUT removing all the other CSS declaration stylings.
March 30, 2013 at 9:09 am in reply to: Alter Agency to have blog posts/widgets layout below slider #32075Ben SiegfriedMemberThe solution is to comment out the following lines in the home.php file:
//remove_action( 'genesis_loop', 'genesis_do_loop' );//add_action( 'genesis_loop', 'agency_home_loop_helper' );
//add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );However, this will remove the Home left, right and middle widget areas.
-
AuthorPosts