Forum Replies Created
-
AuthorPosts
-
erickuhn19
MemberCool, I actually prefer it showing up on every page of the forum, so this works grrat for me. My next step is customizing the background of the widget so it matches the forum.
erickuhn19
MemberBrad,
Yes! This worked!Thank you.
erickuhn19
MemberBrad,
I want to thank you for all of your help. I just tested the code applying the widget to my "resources" page, so there must be a bug with this working with the bbpress.I really appreciate your help and patience.
erickuhn19
MemberFor some reason it is not working for me. Maybe because the bbpress forum is the content before it? Or something to do with the Agency-Pro theme.
I have tried a few variations using your method as well as: http://www.carriedils.com/add-widget-area-below-nav/#comment-3320
Both are similar but still a little different.Can you tell whats wrong with these?
<p><script src="https://gist.github.com/erickuhn19/7365562.js"></script></p>
<p><script src="https://gist.github.com/erickuhn19/7365906.js"></script></p>
erickuhn19
MemberI see thanks for the information. OK, I got my Github working.
Is page ID /forum or do I have to assign a number custom fields?
<script src="https://gist.github.com/erickuhn19/7364210.js"></script>
erickuhn19
MemberSorry I didn't post that right:
genesis_register_sidebar( array(
'id' => 'before-loop',
'name' => __( 'Front Page Slider', 'wpsites' ),
'description' => __( 'This is the slider widget.', 'wpsites' ),
) );add_action( 'genesis_before_loop', 'wpsites_before_loop_widget' );
function wpsites_before_loop_widget() {
if (is_page ('forum') && is_active_sidebar('before-loop') ) {
genesis_widget_area( 'before-loop', array(
'before' => '<div class="before-loop">',
'after' => '</div>',
) );}}
erickuhn19
MemberNevermind I figured out how to go into my hosting and edit the functions file from there.
Can you tell what is wrong with my code that created that error
<script src="https://github.com/erickuhn19/bbpress/blob/master/register%20widget%20in%20forum"></script>
erickuhn19
MemberI'm not sure what happened but I am getting this error message:
Parse error: syntax error, unexpected '(' in /home/content/85/11958585/html/wp-content/themes/agency-pro/functions.php on line 149
And I cant get back into my WordPress editor at all...
erickuhn19
MemberAnitac,
Thanks for the info! What's the reason someone would use BuddyPress for? Does this forum or the quicksprout forum use BuddyPress too?
erickuhn19
MemberSo Sridhar posted two different methods on two different blog posts.
How to show Featured Pages in Home Bottom section similar to Featured Posts in Agency Pro
This is the description to have the look and feel like the demo from the home-middle. His code however still needs to be adjusted to home-middle, if that is where you want to put it. Its set up to be added for the home-bottom section. You will want to use this if you want to have a picture displayed and when you hover over the image the text appears. The image will still be some what visible from the background. Not all pictures look good with this setup.
How to show Featured Pages instead of Posts in Home Bottom section of Agency Pro
You will want to use this code to have the look and the feel of the home-bottom from the demo. This is not set up to show the featured image. This code also needs to be adjusted for "home-middle" if that is where you want the widget to be.
Let me know if this helps.
erickuhn19
MemberAndrea,
Thanks, I will look into that.
Does StudioPress give a specific endorsement to one of these companies?
erickuhn19
MemberThanks sdbroker. I tried the code from the first reply and it worked. If my testing shows it doesn't respond well on different screens than I will test yours. Thanks for the input.
erickuhn19
MemberTornado,
I had the same thought when I just tried it a few minutes ago. I was trying to configure it for the home-middle widget, so if that is the case for you, then replace the word "bottom" with "middle". The code that Sridhar describes is for the home-bottom widget.
This is the code I used and it worked for me:
.agency-pro-home .content .home-middle .widget {
width: 33.3333%;
min-height: 260px;
float: left;
margin-bottom: 0;
}.agency-pro-home .content .home-middle .widget:hover {
background: #333;
color: #fff;
}.agency-pro-home .content .home-middle .widget .entry {
background: transparent;
}.agency-pro-home .content .home-middle .widget:hover .entry-title a {
color: #fff;
}
@media only screen and (max-width: 1180px) {
.agency-pro-home .content .home-middle .widget {
min-height: 280px;
}
}
@media only screen and (max-width: 1023px) {
.agency-pro-home .content .home-middle .widget {
width: 50%;
min-height: 280px;
}
}
@media only screen and (max-width: 680px) {
.agency-pro-home .content .home-middle .widget {
width: 100%;
min-height: 0;
}
}erickuhn19
MemberThank you Andrea! This is exactly what I was looking for. I really appreciate your help.
-
AuthorPosts