• cincyfan04

    (@cincyfan04)


    Totally new at this, I did programming in college but it was mostly just HTML and I haven’t used it in years. I recently took over the roll out of a small website and was left with a bunch of plugins I’ve never used. This is my first stab at WordPress and I think it’s going really well, but I’m having an extremely hard time figuring out these buttons that were left on one of the pages.

    Can anyone point me to what code this is? I googled this every which way and only turned up other websites that had this code but no explanation:

    [container padding="10px 0"]
    [tm_code]
    [ tm_button type="small"]Purchase Now[ /tm_button ]
    [/tm_code]
    [/container]

    It was in a visual editor widget on a single page. I’m simply trying to turn the button into a hyperlink. My meager attempts at surrounding it with the proper HTML a href tags only caused some weird duplicate buttons to show up.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • DoctorThomas

    (@doctorthomas-1)

    What happens if you remove the code and put your link in its place?

    You don’t want the button to be the link anchor do you?

    If you do, you can load the button image into the media area of the WP install. Upload it from your PC directly into WP.
    Within WP there is the ability to name/rename the image, put a headline below and give a link property to it. One, two, all or none.
    If you mess up one those, WP is forgiving because like a post it does not affect the programming code. Just repeat your steps and correct the error (spelling, link fetch address, etc). In your page composing area, there is an html editor choice which will allow you to use stand html code to make the button function as link.

    What you are doing is not unusual. Google should give 15 to 20 good hits. Google: “jpg as hyperlink in wordpress”. The first result seems right on.

    This rather brief because from your words it seems you are more handy than other beginners here. If not, respond and I will give additional detail.

    Thread Starter cincyfan04

    (@cincyfan04)

    Loading as an image is a good idea, I may use that approach!

    The more I look at this, the more I think this is a call to a specific code somewhere else that I can’t find. For example, I’m finding more “template” pages that have very little code (I guess it’s shortcode) but the page they produce is very intricate.

    Here’s an example:

    [container][tm_portfolio column=2 max="4" character="50"][/container]

    That is the ONLY code in the visual editor. Yet, I get this as a result:

    Template page.

    (bare in mind my sites header and footers are there as a default).

    I’m using TemplateMela…I assume that’s what the ‘TM_’ is in front of all the code I see. Any clue where the heck that is stored?

    DoctorThomas

    (@doctorthomas-1)

    Well it is admirable that you believe this WP theme will put script onto the area of the photo(s) you are using (and where you want it). But I think time spent toward that end is squandered when a viable alternate exists desktop.

    The location of specific code within unique authored themes is a coder’s preference as long as it conforms generally with WP minimum requirements for php operation. So asking another who did not write the theme where a snippet is located is the proverbial needle in the haystack. The basic concept of WP is fast and flexible. I’d still add text on your desktop and load the graphic. Imagine of you had a half dozen clients wanting to use a version of this theme… with texted graphics.

    By the way, should the theme up-date, your particular code snippet and its location may well change. Then your work is irretrievably lost in the theme update overwrite.

    Once the desktop creation is complete, you always have control. If you use layers you can change the location and other qualities. There are numerous editing programs besides PS. Some are free or low cost but could do this job in the time already spent.

    Last chance is to contact the theme author and ask her/him. Coders are generally nice people, but getting a response and getting her/his time for free is another issue. BTW I like the theme ….

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘What is this code in Visual Editor’ is closed to new replies.