Jump to content
ratputin

Add Title to Carousel

Recommended Posts

ratputin+    2
ratputin
I have read the thread at http://www.pagelines.com/forum/topic/11137-how-to-add-title-to-carousel/ as well as the "add Hooks docs but am having an issue adding a title to the Carousel. I have adding the code provided in the referenced thread to my functions.php and init.php foles no avail. The code looks like this:

[CODE]
add_action('pagelines_inside_top_carousel','add_carousel_title');
function add_carousel_title() {?>
[/CODE]

When I try to use it, I receive a syntax error. Any ideas?

TIA
~Rat

Share this post


Link to post
Share on other sites
batman    389
batman
Hi
You can try with

[code]
add_action('pagelines_inside_top_carousel','add_carousel_title');
function add_carousel_title() {?>
YOUR TITLE HERE
<?php
}
[/code]

Please see first this link
[color=#215e9b][url="http://www.pagelines.com/wiki/How_to_Use_the_PageLines_Customize_Plugin"]How_to_Use_the_PageLines_Customize_Plugin[/url][/color]
  • Like 1

Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
ratputin+    2
ratputin
[quote name='batman' timestamp='1347919361' post='127182']
Hi
You can try with

[code]
add_action('pagelines_inside_top_carousel','add_carousel_title');
function add_carousel_title() {?>
YOUR TITLE HERE
<?php
}
[/code]

Please see first this link
[color=#215e9b][url="http://www.pagelines.com/wiki/How_to_Use_the_PageLines_Customize_Plugin"]How_to_Use_the_PageLines_Customize_Plugin[/url][/color]
[/quote]

Worked perfectly and thanks for the plugin tip! Perhaps you could help me one more thing...how would I go about adding the Current Category (i.e. [color=#000000][font=Consolas, Monaco, 'Courier New', Courier, monospace][size=3][background=rgb(243, 243, 247)]<p><?php single_cat_title('Currently browsing '); ?>.</p>)[/background][/size][/font][/color] into the "YOUR TITLE HERE" verbiage?

Share this post


Link to post
Share on other sites
Rob    547
Rob
I have to check with our developers but it seems to me that the hook isn't structured to work properly. I will ask one of my developers to take a look in the morning and apologize for the delay.

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
ratputin+    2
ratputin
Thanks Rob and no worries. Any help is greatly appreciated!

~Rat

Share this post


Link to post
Share on other sites
batman    389
batman
Hi rat
You can try with

[code]
add_action('pagelines_inside_top_carousel', 'add_my_cat');
function add_my_cat( ) {
printf( '<div class="add_my_cat">%S</div>',the_category() );
}
[/code]

and move with css rules


[code]
#carousel .content ul li {
float: none;
text-align: left;
position: relative;
}[/code]

[size=4]but i´m not sure[/size]

Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
batman    389
batman
Upppsss sorry, is best to wait as rob said ....
;)

Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
ratputin+    2
ratputin
[quote name='batman' timestamp='1347923151' post='127190']
Upppsss sorry, is best to wait as rob said ....
;)
[/quote]

LOL...I have just discovered that :)

Share this post


Link to post
Share on other sites
bxbmedia    2
bxbmedia
Doesn't seem to be a problem to me.

This:

[CODE]
add_action('pagelines_inside_top_carousel','add_carousel_title');
function add_carousel_title() {
single_cat_title('Currently browsing ');
}
[/CODE]

Produces this:
[img]http://i.imgur.com/KIE5T.png[/img]

If you wanted to wrap that text in a <div> or <p> tag or add some other code to it, you'd need to do things a little differently like so (although this isn't the only way to do it):

[CODE]

add_action('pagelines_inside_top_carousel','add_carousel_title');
function add_carousel_title() {

printf( '<p>Currently browsing: %s</p>', single_cat_title('', false) );

}
[/CODE]

gl hf

Share this post


Link to post
Share on other sites
ratputin+    2
ratputin
@bxbmedia thanks for the help. I tried the first code you posted prior to starting this thread...doesn't work for me. Your second code does show the "Currently browsing:" text, but not the category name. It's prob something I've done incorrectly. Here's a link/creds for reference:

URL [url="http://millerlandscapearchitecture.com/tristonefirst-community-bank/"]http://millerlandsca...community-bank/[/url]

Username: [i][s]removed[/s][/i]
Password: [i][s]removed[/s][/i] Edited by Simon Prosser
removed login details!! (see edit history)

Share this post


Link to post
Share on other sites
Simon    247
Simon
Never EVER include login details in a public forum!!!
This forum software has an excellent private message feature please use that.

Share this post


Link to post
Share on other sites
ratputin+    2
ratputin
[quote name='Simon Prosser' timestamp='1347978312' post='127252']
Never EVER include login details in a public forum!!!
This forum software has an excellent private message feature please use that.
[/quote]

It is a temp Subscriber account setup specifically for previewing the site.

Share this post


Link to post
Share on other sites
Simon    247
Simon
Doesn't matter, just dont do it, use a private message, these forums are indexed everyday, you will have spambots hammering your site for that login even if it is deactivated.

Share this post


Link to post
Share on other sites
ratputin+    2
ratputin
I appreciate the concern. However that is a dev build and the URL will be discarded once the site is completed and migrated. If it were otherwise I wouldn't have posted it. Thanks again.

KO

Share this post


Link to post
Share on other sites
Rob    547
Rob
Many people post logins with full admin access here. It's our policy to always redact any login information posted publicly, no matter what access level it may include.

Please let us know if bxbmedia's solution worked.

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
ratputin+    2
ratputin
I see your point about the login. RE the fix...unfortunately, this still applies:

[quote name='ratputin' timestamp='1347976505' post='127248']
@bxbmedia thanks for the help. I tried the first code you posted prior to starting this thread...doesn't work for me. Your second code does show the "Currently browsing:" text, but not the category name. It's prob something I've done incorrectly. Here's a link/creds for reference:

URL [url="http://millerlandscapearchitecture.com/tristonefirst-community-bank/"]http://millerlandsca...community-bank/[/url]

Username: [i][s]removed[/s][/i]
Password: [i][s]removed[/s][/i]
[/quote]

Share this post


Link to post
Share on other sites
Rob    547
Rob
Send me a PM with your login info so I can see the site.

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
ratputin+    2
ratputin
@Rob - just saw this. PM sent.

TIA
~Rat

Share this post


Link to post
Share on other sites
Rob    547
Rob
Rat, from what I see here, it appears to be working correctly. Is there some particular place I should view where it isn't working, where there are posts in the category?

I'm looking at [b]/tristonefirst-community-bank/[/b]

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
ratputin+    2
ratputin
[b]/tristonefirst-community-bank/ [/b]is a post in the category "Financial/Corporate" which is a sub-category of "Portfolio." zThe client was having a look at the site's progress so I changed the code to read:

[CODE]
add_action('pagelines_inside_top_carousel','add_carousel_title');
function add_carousel_title() {
printf( '<h1>See more in this Category <br /><br /> %s</h1>', single_cat_title('', false) );
}
[/CODE]

The issue is that the "single_cat_title" doesn't show. At least, I can't see it :)

Visual Reference
[img]http://millerlandscapearchitecture.com/screenie.png[/img]

Share this post


Link to post
Share on other sites
Danny    1,327
Danny
Hi,

Can you check to see if the text color is set to black and therefore would be unable to see it. You can check this in Firebug/Google Chromes web dev tool.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
ratputin+    2
ratputin
Danny,
It is not black....lol...always good to cover the basics. :) The "h1" tag is set to "#fff". I also do not see the cat name in the Elements code.

Visual reference in case I missed something (I have highlighted the title to try to reveal any text):
[img]http://millerlandscapearchitecture.com/screenie-02.png[/img]

Share this post


Link to post
Share on other sites
Rob    547
Rob
Honestly, I think this is going to require the assistance of one of our pro developers found at http://www.pagelines.com/pros.

Apologies, but our moderators aren't necessarily developers and validating or correcting a hook like this could result in errors on your site that I for one, would not like to create. Likely, this is a quick solution one of them can provide.

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
ratputin+    2
ratputin
Don't give up on me Rob :). I really do not want to go that route if possible. FYI - There has to be some sort of conflict in the framework. The Facebook button will not work in the Sharebar correctly either ( I started a separate thread, but doubt an answer will be found ).

Seems like every time I come up against something with this platform, I have to solve it on my own. If you've got an inkling about the hook, I'm willing to give it a go...and won't hold you accountable :).

Rat

Share this post


Link to post
Share on other sites
Simon    247
Simon

I just tested the code evan posted and tested cats up to 3 levels deep
http://screencast.com/t/9bsMIYnHGZ

http://screencast.com/t/nhJu4kCpAXD

for ref the code i used is:

add_action('pagelines_inside_top_carousel','add_carousel_title');
function add_carousel_title() {
printf( '<p>Currently browsing: %s</p>', single_cat_title('', false) );
}
and i added it to pagelines-customize.

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


  • Similar Content

    • oseehys
      By oseehys+
      The Grams section of Platform 5, is lacking lots of important features, that DMS multigram was having, there is no space for another user ID asie the default user, that was one of the strongest point of multigrams, because the Hashtag option cannot capture everyone, multiple User ID is the default standard for Instagram,  Also there is no carousel or slide on this one, it means now that if you want to display 18 pictures in one page all will be visible at once thats not good engineering.
      My appeal to the Pagelines Team, guys please let the next update have all the DMS Multigrams features that is missing on Platform 5 Grams, that will bring it to its glory...
       
       
    • Claudio
      By Claudio+
      I have a problem with the typography settings. I set the H1 class with "font-weight: 300;" (Very thin weight), and "font-size: 50px;" (To have considerable evidence of my problem). Unfortunately, as you can see on the screenshots, those setting don't have any incidence on the site, Infact in the home page editor there is a trial title called "Text test", bold, and 26 px approximatly sized.
      Why the typography settings are not transposed on the site? Where I wrong?


    • onlinedesigns4u
      By onlinedesigns4u+
      Hi Guys, 
       
      I noticed this a while back but thought it happened back when there was security issues with the wordpress plugin revolution slider and thats why they disappeared, but thinking i was wrong now as mine are the DMS versions.
       
      Basically, my front end editor is missing the icons for;
       
      • Rev Slider
      • Revolution Slider
      • Quick Slider
       

       
       
      What i've also noticed is a difference in how the menu tabs on the left hand side of the front end editor have changed. They were not styled like this before. Its like the css is off or something isnt quite right with the install somehow, somewhere.
       
      Even though the icons are missing for the slider sections. I can still drag them onto my pages and configure them, to a certain degree anyway.
       
      I tried adding the revolution slider to a page yesterday. But it wasnt responding to the way i had configured it. I choose a slide set for it to use and it took no notice. It just used every slide and every caption regardless.
       
      Leaving the revolution slider behind i took a look at the rev slider. Adding the correct images is fine. But i don't get any captions showing when i set them? Tried a few different options but nothing.
       
      Id like to know if my pagelines DMS 2 install is corrupt in anyway? Does anyone else's front end editor look the same as mine? Is anyone else missing the icons for the sliders and have no padding-right for the menu items?
       
      Is anyone using any of the sliders at the moment without issues?
       
      Im using the child theme 'Sophistique" which uses the revolution slider on the homepage. It works fine and its configured the way i want it using thh slide sets ive choosen so dont understand why it would be working inside the website.
       
      Any advice or help is appreciated. Thank for your time guys. Ben
       
       
       
    • dgsarnow
      By dgsarnow+
      I have DMS2 installed and my site is being served over HTTPS. However, I am getting an error that a placeholder image for Quick Carousel (which is not a being used on any of my pages) is being served over http://
       
      Mixed Content: The page at 'https://harqen.com/'was loaded over HTTPS, but requested an insecure image 'http://placehold.it/45x45/f0f0f0/ccc'. This content should also be served over HTTPS.
       
      How can I remove this?
       
      Found it. It was the Recent Posts Widget that was calling this little devil. I have removed the reference and all is well in SSL land.
    • dgsarnow
      By dgsarnow+
      I just updated to the new theme and I am now getting errors on my HTTPS site that the quick carousel is trying to deliver content through HTTP.
       
      Mixed Content: The page at 'https://harqen.com/'was loaded over HTTPS, but requested an insecure script 'http://harqen.com/wp-content/themes/dms/sections/quickcarousel/caroufredsel.js?ver=98ab90'. This request has been blocked; the content must be served over HTTPS.
       
      Can you please help me correct this issue?
       
       
×