Community Forums › Forums › Archived Forums › Design Tips and Tricks › Agency Pro Welcome Mesage – line break?
Tagged: agency pro, centered, line break, title, welcome
- This topic has 17 replies, 5 voices, and was last updated 10 years, 9 months ago by
nunotmp.
-
AuthorPosts
-
June 24, 2014 at 1:44 pm #111338
Paul
MemberI'm using the Agency Pro child theme for the first time, and I'm trying to figure out how to get the welcome message to have a line break and still be properly centered.
I'd like "Welcome to Nanty Glo" to be one line and "Church of the Nazarene" to be the 2nd line. The title for the widget doesn't recognize
</br>
and trying to use
throws it off center.Any suggestions? Thanks in advance for any help!
Grace and Peace,
PaulJune 25, 2014 at 7:25 am #111448AnitaC
KeymasterI used
<br />
with Firebug and it works. Not sure if how did my break work would work, but try it that way. If not, there is a plugin I've used in the past called "Linkable Title, HTML and PHP Widget."
Need help with customization or troubleshooting? Reach out to me.
June 28, 2014 at 9:32 am #111877Paul
MemberThanks Anita, but that didn't do the trick either. I installed that plugin and it is doing the same thing that the text widget did - as soon as I "save" it, it strips out any code.
I used Web Developer to edit the site and it worked perfectly but as soon as I save it that way in the widget (either widget) the line break is stripped.
I currently have both the standard text widget and the Linkable Title, HTML and PHP Widget in the Home Top widget area and both display exactly the same.
Any other suggestions or ideas on how to get this to display as
Welcome to Nanty Glo <br />Church of the Nazarene
Grace and Peace,
PaulJune 28, 2014 at 5:47 pm #111897AnitaC
KeymasterJune 28, 2014 at 5:54 pm #111899Gary Jones
MemberYou should be able to adapt this tutorial, so instead of adding a span in, you add your title with a <br /> element instead:
http://www.carriedils.com/custom-site-title-genesis/
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
June 28, 2014 at 5:55 pm #111900June 28, 2014 at 5:59 pm #111901weslinda
MemberI see one of two routes.
First is to simply put the HTML code that you want in the text widget instead of using a title. You can add the CSS styles to the lines that you want to display a certain way. Forego the HTML in the title completely. This is the least intrusive manner since you're okay doing HTML here.
Second is to follow the guides on this page. Looks like it should work, but I haven't directly tested it.
Loving the Genesis Life!
June 28, 2014 at 6:41 pm #111904nunotmp
MemberOne very easy way to do this is leave the title blank but use its markup. So simply move it down into the text widget and wrap it like so.
<h4 class="widget-title widgettitle">Welcome to Nanty Glo<br>Church of the Nazarene</h4>
This will give you what you are looking for.
June 28, 2014 at 7:23 pm #111908Gary Jones
MemberUnfortunately, that will hinder SEO, since the H1 wrapping the site-title would be lost.
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
June 28, 2014 at 7:30 pm #111910weslinda
MemberCan you be more specific Gary? Where would the H1 be lost?
Loving the Genesis Life!
June 28, 2014 at 7:35 pm #111911Gary Jones
Member"leave the title blank" presumably means setting Settings->General site name to an empty string. That affects
<title>
elements, site heading (the H1 would be "<h1></h1>") and other bits, and really isn't advised.
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
June 28, 2014 at 7:40 pm #111912weslinda
MemberGotcha. I believe that the widget title is what's being shared as what to leave blank, not the Settings > General site name option. If you move the h4 code that would be created with the widget title to the text area of the widget, and leave the widget title blank, it should work. Wouldn't affect the h1 on the site at all. At least, that's what I was talking about.
Loving the Genesis Life!
June 28, 2014 at 7:43 pm #111913Gary Jones
MemberMy apologies to all - I'd missed (it's nearly 3am here) that it was the widget title that wanted to be split up, not the site title.
The tutorial I linked to won't obviously be suitable either.
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
June 28, 2014 at 7:59 pm #111914nunotmp
MemberJune 28, 2014 at 8:01 pm #111916weslinda
MemberGo to bed! 🙂 I went back to check it as well. Keeping us in line eh Gary?
Loving the Genesis Life!
June 28, 2014 at 8:43 pm #111919AnitaC
Keymaster@GaryJ, that was my mistake. I sent the Tweet indicating Site Title! Throw all peanuts at me now! 🙂
Need help with customization or troubleshooting? Reach out to me.
June 28, 2014 at 11:17 pm #111932Paul
MemberThank you nunotmp! That was exactly what I needed.
And thanks to everyone else for your input, I sincerely appreciate it!
Grace and Peace,
PaulJune 29, 2014 at 12:29 am #111941nunotmp
Member -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.