Forum Replies Created
-
AuthorPosts
-
danielleBParticipant
It sure does work! Thank you.
Danielle
February 12, 2021 at 8:43 am in reply to: php function to remove (hide) menu items from "Editor" dashboard #503025danielleBParticipantThis reply has been marked as private.February 12, 2021 at 8:41 am in reply to: php function to remove (hide) menu items from "Editor" dashboard #503024danielleBParticipantThank you, Andy. I owe you a coffee.
Danielle
Danielle
danielleBParticipantHi Anita,
I always use pages in static site design. In this case, I have a members page that I am making searchable using categories. The site is in French, but I think you’ll get the idea here: http://danielleb8.sg-host.com/nos-membres/
What I would like to do is diplay the various categories (linked to the category page) assigned to a specific member on the member page underneath the contact information, as I would be able to do were these posts instead of pages. E.g. Member page: http://danielleb8.sg-host.com/nos-membres/bouffe-pontiac/
I design sites mostly for community and government organizations and find myself using the category plugin on pages very often. Unfortunately, it doesn’t provide all the capability afforded to posts. I have been using Genesis since 2011, and love it and its shortcode capability, but it’s falling short on pages unfortunately. I’m not a coder so I depend on this forum to help me out when I’m designing out of the box. I figure some code in the function.php file will do the trick. Or a page.php file? I tried modifying what’s available for post categories in the child’s function file, but of course it didn’t work.
I always wondered why WP didn’t treat pages the same as posts when it comes to categories and tags.
Danielle
danielleBParticipantThis reply has been marked as private.danielleBParticipantThis reply has been marked as private.danielleBParticipantThis reply has been marked as private.danielleBParticipantThis reply has been marked as private.danielleBParticipantThis reply has been marked as private.danielleBParticipantThank you, Anita. Will check those out.
Danielle
Danielle
danielleBParticipantFigured out what was wrong. When creating a new page as the homepage, you need to pick the 'blocks' template.
Danielle
danielleBParticipantWhen I first activated the Essence Pro theme on my local server, I also had the three sections in the hero section and I was able to customize it. But when I went back to make changes to it, the three options/sections had disappeared.
Danielle
danielleBParticipantI'm using excerpt in settings. The content limit option is not available in the Settings.
Danielle
danielleBParticipantThank you for your response, Anita. It explains why the CSS code is presented very differently from the other Genesis themes that I've used. Trust me to pick a theme that I can't tweak using Design Palette Pro! The homepage widget areas is what I'm struggling with. Maker Pro has a separate style file for the homepage. I want to use a different color link on the homepage than in the rest of the site. I added the following line of code in the homepage CSS file, but it didn't work:
.widget-area .a {
color: #7bc555;
border-bottom: 1 px solid;
}I suspect I need to add the code in the main CSS file, in which case I have not idea how to point to the homepage widget CSS.
Danielle
Danielle
danielleBParticipantThank you, Wanda. My client is extremely pleased with his site. He asked my permission to refer me to other writers!!! I could be getting a lot more work. The challenge will be to customize each site enough that they don't look too much alike. I pretty much stuck to the theme's default layout for this one.
Danielle
Danielle
danielleBParticipantYour site looks very nice. I am using Altitude Pro as well to design my site.
Bravo!
Danielle
danielleBParticipantThat worked! Thank you, Brad.
Danielle
danielleBParticipantI added it to the theme's functions.php file, near the end, before the:
//* Customize the post meta function
add_filter( 'genesis_post_meta', 'sp_post_meta_filter' );
function sp_post_meta_filter($post_meta) {
if ( !is_page() ) {
$post_meta = '[post_categories before=": "] [post_tags before=": "]';
return $post_meta;
}}This is what the code looks like:
// Add Shortcode
function publisher_shortcode() {return '<span class="custom-entry-meta" itemprop="name"> | MRC Pontiac</span>';
}
add_shortcode( 'publisher', 'publisher_shortcode' );add_filter( 'genesis_post_info', 'sp_post_info_filter' );
function sp_post_info_filter($post_info) {
$post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit] [publisher]';
return $post_info;
}Then, in the body of the post, I added the shortcode as follows: [publisher name="MRC Pontiac"] (MRC Pontiac was the publisher in this case, but not in every case.) This code returns "MRC Pontiac" in the entry.meta as well as the body of the post. What I need it to do, is return a variable entry in the entry.meta location only.
This is what it looks like:
By the way, I tried replacing MRC Pontiac (publisher name) with an empty ' ' in the code, but that doesn't work.
Danielle
Danielle
danielleBParticipantThank you for this braddalton. I spent a lot of time trying it with the shortcode generator (great tool, by the way!) I'm learning a lot from the example you provided, but I can't quite get it to do what I need it to do.
Ideally, I'd like to add a shortcode at the beginning of the post: e.g., [publisher name="..."] that would return the appropriate credits in the entry meta. I would then use the Genesis 'quick edits' tool to add the shortcode to my posts. Using your example as a starting point, I tried to do this, but I can't get it to return variable content.
What am I missing?
Many thanks in advance for your help.
Danielle
-
AuthorPosts