0
Welcome Guest! Login
0 items Join Now

Change Build title spans

    • Omikron's Avatar
    • Omikron
    • Jr. Rocketeer
    • Posts: 47
    • Thanks: 0

    Change Build title spans

    Posted 12 years 10 months ago
    • HI I would like to change the build title spans feature to select the last word instead of the first, how exactly would I do this?
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: Change Build title spans

    Posted 12 years 10 months ago
    • I think you have to change this:


      /*** gantry-buildspans.js ***/

      /**
      * @version ${project.version} ${build_date}
      * @author RocketTheme www.rockettheme.com
      * @copyright Copyright (C) 2007 - ${copyright_year} RocketTheme, LLC
      * @license www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
      */

      var GantryBuildSpans=function(g,j,k){(g.length).times(function(i){var e="."+g;var f=function(a){a.setStyle('visibility','visible');var b=a.getText();var c=b.split(" ");first=c[0];rest=c.slice(1).join(" ");html=a.innerHTML;if(rest.length>0){var d=a.clone().setText(' '+rest),span=new Element('span').setText(first);span.inject(d,'top');a.replaceWith(d)}};$$(e).each(function(c){j.each(function(h){c.getElements(h).each(function(b){var a=b.getFirst();if(a&&a.getTag()=='a')f(a);else f(b)})})})})};
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG
  • Re: Change Build title spans

    Posted 12 years 7 months ago
    • I do not follow this resolution very well.

      What file must I update? to resolve the split color in the Clarion Page Title.

      And How shall the code look If I want it all to be one color?
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Change Build title spans

    Posted 12 years 7 months ago
    • If you want all in one color ... just disable that feature in the settings of the template.
      If you want to pick up the last word ... well thats beyond the support that we can offer here in the forum. I suggest to post in our "Marketplac"e to find a (paid) developer that does that for you.
      We won't customize jscripts for you.
  • Re: Change Build title spans

    Posted 9 years 4 months ago
    • I am using the clarion theme and I can't find where I can disable this feature. I want both of the title words to be the same color instead of having the first word be a different color and the rest the same.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Change Build title spans

    Posted 9 years 4 months ago
    • Hi Rockettech,

      can you please post that in the Clarion-forum?
      Personally I have no clue about Wordpress.
      In the Clarion-WP forum one of the Wordpress-guys can pick up your issue.

Time to create page: 0.052 seconds