The correct revision of the sentence is the first one.
Theodore Roosevelt, the twenty-sixth president of the United States, was the youngest president to ever hold office.
This revision adds commas to set off the nonessential information ("the twenty-sixth president of the United States") and to indicate the proper pause between the introductory element and the main clause.