oturia
Forum Replies Created
-
If it helps, I also had this issue and edited the plugin. On line 45 of the functions.php file, there is an if statement that says if it’s the home page or the category page, then return the content without the Pin It button.
if(is_front_page()||is_category()){If you want it to show up on the front page, change it to this:
if(is_category()){If you’re interested in customizing it further, you would probably want to read up on Conditional Tags.
Thanks. So I would just place that in the head of the document and it would automatically run when the Ajax is called?
Well, I spent three days trying to figure this out, and thirty minutes after posting this I got it to work. Go figure 🙂
What I had to do was get FB.XFBML.parse(); to run inside of the plugin, but it was being stripped from the template file that reloads the content.
What I did was create a separate file called fbreload.php. Then, in this file I added the following code:
<script type="text/javascript"> jQuery('#content').ajaxComplete(function(){ //re-render the facebook icons (in a div with id of 'content') FB.XFBML.parse(); }); </script>Please note that the DIV I am using (#content) may not be the same DIV for you, but it’s a pretty universal part of WP’s theming structure so it should be.
Go ahead and upload this file into ajax-read-more/inc/ajax-response-templates/. There should be only one other file in their, the single.php which is the template the plugin uses to format the content pulled after the more tag.
Then you’ll need to open ajax-read-more/ajax-read-more-core.php. Scroll down near the bottom and you’ll see this code:
function ajax_read_more_template_redirect() { if (have_posts()) { include('inc/ajax-response-templates/single.php'); }; exit(); };What you going to want to do is include that new file you created, so replace that with this:
function ajax_read_more_template_redirect() { if (have_posts()) { include('inc/ajax-response-templates/single.php'); include('inc/ajax-response-templates/fbreload.php'); }; exit(); };Now go back and refresh your page and you’ll see that the contents of the FB Comments are now loading!
Forum: Themes and Templates
In reply to: Twenty Ten Header Image modificationPlease repost the latest code you are using in the header. I’ll throw up a twentyten install and test it out.
Forum: Themes and Templates
In reply to: Twenty Ten Header Image modificationWell, we’re getting closer. Try this:
wp_get_attachment_image_src($attachment_id, 'full', false)Forum: Themes and Templates
In reply to: Help Installing Theme into WordPressThat’s good news. Don’t forget to make the issue as “Resolved”
Forum: Themes and Templates
In reply to: Twenty Ten Header Image modificationOK, why don’t you try
wp_get_attachment_image_srcinstead ofget_the_attachment_link.Let me know if that works.
Forum: Themes and Templates
In reply to: Change recent post list style in widgetOK, try adding the below code to your IE 7 stylesheet:
.blockcontent-body ul li { line-height: 1.26em; border-bottom: 1px solid #477029; padding: 5px 0 5px 15px; }Forum: Themes and Templates
In reply to: Change recent post list style in widgetOK, because there is an authentication on the page, I can’t use my Adobe Browser Labs tool to view the site in IE 6 & 7.
I do know that on older versions of IE, you need to be very specific with your style selectors, sometimes an earlier UL or LI style might override your custom settings for .blockcontent-body.
Without being able to further analyze the site, I would suggest you do two things:
One, place an IE conditional statement in your header.php file right before the closing
</head>tag.Here is an example:
<!--[if lte IE 7]> <style> .blockcontent-body ul li { } </style> <![endif]-->This will allow you to play around with padding (space between element and it’s border) and margins (space between outside of item’s border and the elements around it).
The next thing you are going to need to get familiar with are styling the lists themselves, and the general CSS styling commands at your disposal.
I would recommend a ten minute crash course by reading through this post. It will help you get the basics down.
Good luck with your new site!
Forum: Themes and Templates
In reply to: Change recent post list style in widgetLook in the stylesheet and tell me if the ul and li are capitalized:
.blockcontent-body UL LIand if they are, make them lowercase and see if that makes a difference.
Forum: Themes and Templates
In reply to: Change recent post list style in widgetCan you post a link to the actual site you are developing so I can test?
Forum: Themes and Templates
In reply to: Change recent post list style in widgetAdd this:
padding: 5px 0 5px 15px;Forum: Themes and Templates
In reply to: Add a UL of child pages?The code was way too long, apparently. I should’ve known better.
Try this link. I added the code there to the pastebin.
Forum: Themes and Templates
In reply to: link next post, i need change link title nameI did send a reply on the other post. Don’t forget to mark this post as resolved if this fixed your issue.
Forum: Themes and Templates
In reply to: Need to make top navigation bar go across entire siteIt does not include a bold version, it is using Quicksand Light and Quicksand Book. There is a Quicksand Bold Version, but you would need to download the font here, then go to the cufon font generator here, then add the JavaScript file it produces to the template directory “wp-content/themes/elegance/js/”.
Then, you’d have to figure out where the Cufon code is generated in this theme and alter the Cufon tags to change the #top-navigation li a to use the bold font instead of the Quicksand Light font.
The theme author would be able to answer the question about where the code is being generated from, but you may want to at least check the header.php file first to see if it’s there.
The code you are looking for is:
<script type="text/javascript"> Cufon.replace('h1') ('h1 a') ('h2') ('h3') ('h4') ('h5') ('h6') ('#box p') ('.text-styled') ('.desc') ('blockquote') ('#top-navigation li a', { hover: true }); Cufon.replace('#slider .bottom', { fontFamily: 'Quicksand Book' }); Cufon.replace('h2.entry-title', { fontFamily: 'Quicksand Book' }); </script>When you find it, you would want to remove the #top-navigation li a bit, then add it as it’s own line item at the bottom like this:
Cufon.replace('#top-navigation li a', { fontFamily: 'Quicksand Bold' });Beyond that information, there’s not a lot else we can do here. The theme author would be the next person to pick up the ball and help you find the correct place to edit the Cufon markup. Be sure to follow those other steps first so that he or she will need to do nothing more than tell you where to make the edits.
Also, since we have left the realm of “Needing to make the top navigation go across the whole site” and into some other unrelated topics, I would mark this as resolved, attempt to follow the instructions above about Cufon then open another thread if you run into another issue.
Good luck!!!