Forum Replies Created
-
AuthorPosts
-
BennettGlobal
MemberHi Anitac,
Here is the code I found in my CSS. I added the slash in front of height and tried to post an image and it did not work.
/* Images
------------------------------------------------------------ */img {
/height: auto;
max-width: 100%;
}.avatar,
.entry-content img,
.featuredpage img,
.featuredpost img,
.post-image {
background-color: #fff;
border: 4px solid #eee;
padding: 1px;
}.home-middle .featuredpost img {
margin: 0 0 10px;
}.author-box .avatar {
background-color: #fff;
float: left;
height: 72px;
margin: 0 10px 0 0;
width: 72px;
}.post-image {
margin: 0 10px 10px 0;
}.comment-list li .avatar {
background-color: #fff;
float: left;
height: 30px;
margin: 0 5px 0 0;
width: 30px;
}img.centered,
.aligncenter {
display: block;
margin: 0 auto 10px;
}img.alignnone {
display: inline;
margin: 0 0 15px;
}img.alignleft {
display: inline;
margin: 0 15px 10px 0;
}img.alignright {
display: inline;
margin: 0 0 10px 15px;
}.alignleft {
float: left;
margin: 0 15px 0 0;
}.alignright {
float: right;
margin: 0 0 0 15px;
}.wp-caption {
background-color: #f5f5f5;
padding: 10px;
text-align: center;
}p.wp-caption-text {
font-size: 12px;
line-height: 16px;
padding: 5px 0;
}.wp-smiley,
.wp-wink {
border: none;
float: none;
}.gallery-caption {
}BennettGlobal
MemberHey Brad,
Thanks for the knowledge...I got it to work based on your suggestion after a few minutes.
Michael
BennettGlobal
MemberHi Anitac,
Your solution worked great. Thank you. If only I could figure out how to get rid of some of those YouTube ads that appear at the beginning. I saw where it allows you to pick a starting point, but they also embedded some video right over the first few seconds of the video.
Thank you again...You are a valuable resource and I really appreciate all of the things you're teaching me. I'm sure I'll be calling on you again.
Michael
BennettGlobal
MemberHi Anitac,
I used the URL. Should I have used the Embed code? If so, I've never done that before and not sure how to do it.
Michael
BennettGlobal
MemberThanks Anitac,
I will give it a try...I'm still learning how to hard code things so this will be a good challenge...
Michael
BennettGlobal
MemberAnitac,
Thank you...it worked like a charm.
Michael
BennettGlobal
MemberPinky,
Thank you, it worked like a charm...I spent 20 minutes looking in my home page CSS and couldn't find they code I was looking for. I guess my eyes are tired.
Thanks Again,
Michael
BennettGlobal
MemberMB, Bill, Brad,
Well, I have finally solved my problem. That / mark after this--- remove_action( ‘genesis_loop’, ‘genesis_do_loop’ );\ was the problem. As I examined the code further, it appears that when I copied the code into my php folder it placed a / mark after several lines of code and gave me a continuous set of error codes, so I removed all of them and it works fine now. I feel incredibly stupid putting you all through this, but I'm now off to the races.
Thank You All...
Until I need you again (which I'm sure I will)
Michael
BennettGlobal
MemberNow I'm really stumped.
Re-did my Custom Home Page Template (the one I call Entertainment) using Brad's code as a test. My previous line 12 error is now on line 9 but the same message. It's the exact same line of code in both error messages.
remove_action( ‘genesis_loop’, ‘genesis_do_loop’ );\
I'm stumped. Any ideas what I should do? I will check tomorrow. I've been at this for 18 hours trying to solve this and my eyes are shot.
Thanks,
Michael
Parse error: syntax error, unexpected T_STRING in /home/bgeinc/public_html/wp-content/themes/genesis/page_entertainment.php on line 12
Parse error: syntax error, unexpected T_STRING in /home/bgeinc/public_html/wp-content/themes/magazine/Entertainment.php on line 9
BennettGlobal
MemberHey Bill,
Sorry about the tutorial mix up. I'm so tired, I can't keep my eyes open. I will test the code in the morning...I've been at this for 18 hours. My eyes are shot.
Michael
BennettGlobal
MemberHey Bill,
That one change did not work, I still get the error code, but after reading your tutorial code its identical to what I want to do other than the name. I think I'm going to give it a try.
Michael
BennettGlobal
MemberHi Bill,
This is the error message I received if that helps. Let me know if you need more information.
Parse error: syntax error, unexpected T_STRING in /home/bgeinc/public_html/wp-content/themes/genesis/page_entertainment.php on line 12
Michael (BennettGlobal)
BennettGlobal
MemberHi MB,
Glad to have a new BFF who not only shares my problems, but my initials as well. I will test your theory momentarily.
Yes, the Magazine Child Theme has six widget areas. I am essentially trying to keep the ENTERTAINMENT page in the same format as my home page, but with the flexibility to put things in certain key categories and have a widget that allows some of my images in the slider to differ from the Home page. I just copied the php code as is and changed the name to reflect my new template name. It looked pretty easy, but obviously I missed something.
I have a little more time than you do. I was planning on being live by the end of this month. My plans are somewhat ambitious long term, but I've got to get started.
I'm glad you reminded me about the functions.php. I did remember to add those widget areas, but honestly, I forgot I did it until just now.
Hopefully a php genius will come along shortly and solve both of our problems.
The other MB...
BennettGlobal
MemberI'm having some problems trying to create a page template and I need some help. My site is bgemagazine. My goal, was to create a page called ENTERTAINMENT. This page would have the exact same layout as my Home page, but use a different slider. They objective here is to not only create a different slider (I understand I will need to use a non-Genesis slider) but to have certain categories of posts appear on this entertainment page.
The steps I've taken so far:
I went into my cPanel on Host Gator with the following code to create a php file called pages_entertainment.php. When I go back to my Dashboard to create a new page, the drop down menu for page type gives me the option to select Entertainment. It also appears in my Editor under Genesis. When I created a test page using the Entertainment template and placed it in Secondary Navigation bar it seemed fine. Then when I went to open the page it gave me this error:
Parse error: syntax error, unexpected T_STRING in /home/bgeinc/public_html/wp-content/themes/genesis/page_entertainment.php on line 12
According to my code editor in Host Gator this is line 12....
remove_action( 'genesis_loop', 'genesis_do_loop' );\
--------------------------------------------------------------------------------------------------------------------------------------------------------
* Template Name: Entertainment */
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'magazine_entertainment_loop_helper' );
/**
* Add widget support for entertainmentpage. If no widgets active, display the default loop.
*
*/
function magazine_entertainment_loop_helper() {if ( is_active_sidebar( 'entertainment-top' ) || is_active_sidebar( 'entertainment-left' ) || is_active_sidebar( 'entertainment-right' ) || is_active_sidebar( 'entertainment-bottom' ) ) {
if ( is_active_sidebar( 'entertainment-top' ) ) {
echo '<div class="entertainment-top">';
dynamic_sidebar( 'entertainment-top' );
echo '</div><!-- end .entertainment-top -->';
}if ( is_active_sidebar( 'entertainment-left' ) || is_active_sidebar( 'entertainment-right' ) ) {
echo '<div class="entertainment-middle">';
if ( is_active_sidebar( 'entertainment-left' ) ) {
echo '<div class="entertainment-left">';
dynamic_sidebar( 'entertainment-left' );
echo '</div><!-- end .entertainment-left -->';
}if ( is_active_sidebar( 'entertainment-right' ) ) {
echo '<div class="entertainment-right">';
dynamic_sidebar( 'entertainment-right' );
echo '</div><!-- end .entertainment-right -->';
}echo '</div><!-- end .entertainment-middle -->';
}
if ( is_active_sidebar( 'entertainment-bottom' ) ) {
echo '<div class="entertainment-bottom">';
dynamic_sidebar( 'entertainment-bottom' );
echo '</div><!-- end .entertainment-bottom -->';
}}
else {
genesis_standard_loop();
}}
genesis();
-----------------------------------------------------------What am I doing wrong? Is this the right approach for my desired result. I'm a neophyte at this so be easy on me...
BennettGlobal
MemberTony,
Thank you very much. This is great. I made the change in about a minute.
Can't thank you enough.
Michael
BennettGlobal
MemberHi Peter,
Thank You very much. It worked like a charm.
Michael
-
AuthorPosts