Jump to content
JawDesigns

Where do I need to paste this code?

Recommended Posts

JawDesigns    11
JawDesigns

Hi to all,

 

I previously noticed that the Twitter widget created from twitter does not work when the code is pasted into the a morefoot column. A bug was created (http://www.pagelines.com/forum/tracdown/issue/213-twitter-timeline-code-doesnt-work-in-morefoot-columns/) and Simon_P kindly gave me a fix:

 

add_action( 'wp_print_scripts', function() { wp_dequeue_script( 'pagelines-blocks'); } );

 

However, I have no idea where I should paste this code? Any help on this would be great!

 

Thanks, James

 

Wordpress 3.5.2

Base Theme 1.0.2

 


James Wilson

Designer & Photographer

 

Share this post


Link to post
Share on other sites
James B    436
James B

Hi there,

 

Batman is correct, this is a hook so will need to be added to the functions.php inside a child theme or the customize plugin.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
JawDesigns    11
JawDesigns

Thanks for all the help with this guys! I will have a try tomorrow AM and I'll let you know how I get on?

 

Cheers, James


James Wilson

Designer & Photographer

 

Share this post


Link to post
Share on other sites
JawDesigns    11
JawDesigns

Thanks, everything is now working correctly and the Twitter widget shows up perfectly in the morefoot columns. However, this is probably a new topic but I have now realized that I am unable to use any CSS (I think...) to style the Twitter widget.

 

For example if I use 'background: red;' to style the header then nothing happens?

 

.timeline-header

    {
    background: red;
    border-width: 0 0 1px;
    box-shadow: 0 0 0 -3px transparent;
    padding: 12px;
    }

 

Kind regards,

 

James Wilson


James Wilson

Designer & Photographer

 

Share this post


Link to post
Share on other sites
Rob    547
Rob

James, may we have a link?


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
JawDesigns    11
JawDesigns

Ofcourse, please find the link here (http://www.racewaredirect.com). I am able to change the CSS using Firebug as normal. However, when I add the code into the Customize plugin it does not save the changes.

 

the Twitter widget is placed in the #morefoot section of the site.

 

I'll also re-active a 'coming soon' plug-in later today as the site is still heavily in development and clearly unfinished. If it's activated when you click the link let me know and I'll deactivate it ASAP for you.

 

Thanks again for all of your help with this,

 

James.


James Wilson

Designer & Photographer

 

Share this post


Link to post
Share on other sites
greenfly    230
greenfly

Hi Jawdesigns - let us know when you can remove the holding page and we will take a look 


The answer to many issues can be found by searching in the forum before posting as someone else  may very well have had the same problem before you have.  Also, reading the documentation can help you gain a good understanding of how everything works. 

 

Please do not send me private messages. Occam's razor - The principle states "Keep things simple!"

Share this post


Link to post
Share on other sites
JawDesigns    11
JawDesigns

Thankyou Martin, I have removed it now for you

 

All the best, J


James Wilson

Designer & Photographer

 

Share this post


Link to post
Share on other sites
James B    436
James B

Hi there,

 

The white background seems to be coming from a slightly different class using background-color in the css, see http://screencast.com/t/FLhv29OvgUD and trying duplicating that setup. You can try and force the css using !important at the end of the css line before the closing ;

 

.timeline

    {
    background-color: red !important;
    }

 

If it's only the header you want to color, you can use the same class but try important to force it

 

.timeline-header {
    background-colorblue !important;
}

Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
JawDesigns    11
JawDesigns

Hi James,

 

That's great and I appraciate your help with this. I'll give it a go tomorrow & I'll let you know how I get on?

 

Cheers, J


James Wilson

Designer & Photographer

 

Share this post


Link to post
Share on other sites
James B    436
James B

Excellent, yes let us know how you get on


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×