cadfile
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Problems installing purchased template/themeI would try uploading a different theme just to make sure that function works.
It is strange that FTP didn’t work – sounds like maybe the file was corrupted.
Forum: Themes and Templates
In reply to: How can I force new lines in the header.php fileFigured my issue out. I wasn’t getting how to get my function to force a new line and figured out that I needed to put in a PHP declaration so here is the line I added to my function:
<?php echo "\n<!-- my comment -->\n"; ?>
That worked. It dropped down to the next line, wrote the comment, then dropped another line before writing the rest of the text in the function.
Forum: Themes and Templates
In reply to: Change "Leave Reply" to an imagewhere you see:
_('Leave a reply', 'twentytwelve')
Replace the text Leave a reply with the full link to your image:
_('<img src="https://www.motherthink.com/wp-content/uploads/2013/01/braincloud.gif" />', 'twentytwelve')
It worked fine in my Local Host install and you can then control the style through css using class “leave-reply”
Forum: Themes and Templates
In reply to: Problems installing purchased template/themeWhat do you mean you “unzipped the file once downloaded and then rezipped just the theme file”?
Did you look in the zipped file to see if there was a file titled “style.css”?
Usually what I do is unzip the file then use FTP to upload the folder to where I need it.
The other way is though the install tab under “Appearance->Theme”
/wp-admin/theme-install.php?tab=upload
Forum: Themes and Templates
In reply to: [Twenty Twelve] Need help to add date and byline under titleWorking with the function file can be iffy. I’ve had issues with it in the past myself.
Good to read you seem to have it working
Forum: Themes and Templates
In reply to: [Twenty Twelve] Need help to add date and byline under titleYou need to put the function in your child function.php file and call the function from your child content.php file where it checks to see if it is a single post to decide how to display the title. You need to call it twice so the byline shows up on your main page and single posts
Here is the code with notes on placement:
The function is based on the one from the Twenty Eleven theme that WordPress took out in Twenty Twelve
You can look up info on the function under the name it used in the Twenty Eleven theme: ‘twentyeleven_posted_on’
Forum: Plugins
In reply to: [XPoster - Share to X and Mastodon] Shortner error after updateSince shortening the url is redundant (because Twitter already does it) and the error isn’t due to the plugin I can live with it not working all the time. I’ll probably turn it off since I use Google analytics so I don’t need a 3rd party url shortener
Forum: Plugins
In reply to: [Social] Needs update for WP version 3.5Sorry I misunderstood you at first now I get it. Thanks for the info.
Basically the plugin uses the standard call for the shortlink so if the shortlink is funky then it isn’t the plugin. Got it.
Never filed a bug report for WP before so I get to learn something new
Forum: Plugins
In reply to: [Social] Needs update for WP version 3.5In my case I don’t have any plugin that I know of that either needs the wp_get_shortlink function or uses it. I specifically disabled and removed my previous auto sharing plugin to test out Social.
Also the links broadcast under 3.4.2 were normal and after updating to 3.5 they got ugly.
Like I said the links work they just look ugly and unprofessional and I’m disappointed
Forum: Themes and Templates
In reply to: [Twenty Twelve] Need help to add date and byline under titleThanks again
Forum: Themes and Templates
In reply to: [Twenty Twelve] Need help to add date and byline under titleYes MarkRH that is what tipped me off of something to check so thanks for that tip.
The author doesn’t show up in the bottom meta area but does show up in my new byline function call
Forum: Themes and Templates
In reply to: [Twenty Twelve] Need help to add date and byline under title*UGH* never mind about it not showing up on posts – I didn’t catch the conditional for the title so I needed to put the call under both conditions like this:
<?php if ( is_single() ) : ?> <h1 class="entry-title"><?php the_title(); ?></h1> <div class="entry-meta"> <?php abyline_posted_on(); ?> </div><!-- .entry-meta --> <?php else : ?> <h1 class="entry-title"> <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a> </h1> <div class="entry-meta"> <?php abyline_posted_on(); ?> </div><!-- .entry-meta --> <?php endif; // is_single() ?>
Forum: Themes and Templates
In reply to: [Twenty Twelve] Need help to add date and byline under title@alchymyth thanks for the help – I rechecked the call in content.php and it works only on my main page not on my posts. I had removed the conditional after I posted my question.
Anyway you know of to get it to work on my single pages
I looked at twentytwelve_entry_meta() but I didn’t want all the tags and categories at the top and my custom function appears even with one author so I don’t need to do the fake author work around. I didn’t see any info right now on how to filter the output to show just what I want.
@markrh yes your function is similar to what I did and I did get it to show up on the main page but not on my single posts
Forum: Plugins
In reply to: [Social] Needs update for WP version 3.5I used the generic Facebook share bookmarklet and the excerpt and url was normal. I tried the broadcast twice hours apart and it was messed up both times.
Also on the install I have Social I don’t have Jetpack.
Thanks for fixing this plugin. I just liked having the dashboard widget and the other plugins with a dashboard didn’t work either.